[libc-commits] [PATCH] D151155: [libc] Add an option to make `libc` only build the `libc-hdrgen` tool

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon May 22 14:47:37 PDT 2023


jhuber6 added a comment.

In D151155#4362483 <https://reviews.llvm.org/D151155#4362483>, @tra wrote:

> Is libc-hdrgen the only target that's supposed to be built? I find it puzzling that LIBC_HDRGEN_ONLY enables/disables the same early return which is normally controlled by the runtime/project level knob. I mean -- it appears to enable way more than just libc-hdrgen.

When building with runtimes, we use the projects portion to just build the `libc-hdrgen` tool. So here the check is that if we have `libc` in the runtimes, but we're currently not doing a runtime build, then exit out early. This patch adds an extra way to assert that if we're building independently.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151155/new/

https://reviews.llvm.org/D151155



More information about the libc-commits mailing list