[llvm] 6ce341d - [libc] Forward LLVM_LIBC options when using a runtimes build
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 14:24:06 PST 2022
Author: Joseph Huber
Date: 2022-11-14T16:23:56-06:00
New Revision: 6ce341de249c3858802a6f5b1559b2d143b0667d
URL: https://github.com/llvm/llvm-project/commit/6ce341de249c3858802a6f5b1559b2d143b0667d
DIFF: https://github.com/llvm/llvm-project/commit/6ce341de249c3858802a6f5b1559b2d143b0667d.diff
LOG: [libc] Forward LLVM_LIBC options when using a runtimes build
The `LLVM_ENABLE_RUNTIMES' mode is commonly used to build runtimes that
depend on an up-to-date version of clang. Currently, `libc` uses some
internal variables that are not forwarded when building in this mode.
This patch forwards the relevent arguments beginning with `LLVM_LIBC` to
the build when built this way.
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D137977
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index facbecc5d34ad..2c02a7ca843ba 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -178,6 +178,9 @@ foreach(entry ${runtimes})
if(canon_name STREQUAL "COMPILER_RT")
list(APPEND prefixes SANITIZER DARWIN)
endif()
+ if(canon_name STREQUAL "LLVMLIBC")
+ list(APPEND prefixes "LLVM_LIBC")
+ endif()
string(FIND ${projName} "lib" LIB_IDX)
if(LIB_IDX EQUAL 0)
More information about the llvm-commits
mailing list