[libc][llvm] Forward `LIBC_` options as well in a runtime build
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 20 Dec 2022 15:02:24 +0000 (09:02 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 20 Dec 2022 15:05:54 +0000 (09:05 -0600)
commit69186c52400cbb42ff485d851863ca2d5407f841
treed12b806e039295f1d2bd7c51b783b91c11d953f7
parentaa3bd6521249c12a48c7740ae8471b378eb394ae
[libc][llvm] Forward `LIBC_` options as well in a runtime build

Summary:
We need to forward certain CMake definitions to the runtimes build when
using `-DLLVM_ENABLE_RUNTIMES=libc`. The `libc` project uses both
`LLVM_LIBC` and `LIBC` prefixes. Previously we only forwarded
`LLVM_LIBC`. This patch adds the `LIBC_` prefix, using the underscore to
separate it from `LIBCXX`.
llvm/runtimes/CMakeLists.txt