From: Joseph Huber Date: Tue, 20 Dec 2022 15:02:24 +0000 (-0600) Subject: [libc][llvm] Forward `LIBC_` options as well in a runtime build X-Git-Tag: upstream/17.0.6~23110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69186c52400cbb42ff485d851863ca2d5407f841;p=platform%2Fupstream%2Fllvm.git [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`. --- diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 5757c1c..dea0075 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -180,6 +180,7 @@ foreach(entry ${runtimes}) endif() if(canon_name STREQUAL "LLVMLIBC") list(APPEND prefixes "LLVM_LIBC") + list(APPEND prefixes "LIBC_") endif() string(FIND ${projName} "lib" LIB_IDX)