[libc] Use a prebuilt libc-hdrgen binary if available.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 10 Jan 2023 19:33:45 +0000 (19:33 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 27 Jan 2023 19:52:55 +0000 (19:52 +0000)
commit5274a460dac6ab8620519859a2d59eea37123550
treecfc149fa5b53dcc9993f15efe5cf9c4e66a9a86a
parent36244914b42e9ec6b9f01d95efe17c693ae950bc
[libc] Use a prebuilt libc-hdrgen binary if available.

This feature will primarily by used by the runtimes build. In the
runtimes build, we build libc-hdrgen once for the host and use it
to build the libc for other targets. So, the host libc-hdrgen is
like a prebuilt passed to the target builds.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D141426
libc/CMakeLists.txt
libc/cmake/modules/LLVMLibCHeaderRules.cmake
libc/test/src/CMakeLists.txt