[PATCH] D116976: [CMake] Passthrough OSX CMake options to builtins and runtimes
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 21 16:54:48 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9cddfe3085c4: [CMake] Passthrough OSX CMake options to builtins and runtimes (authored by phosek).
Changed prior to commit:
https://reviews.llvm.org/D116976?vs=398750&id=402138#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116976/new/
https://reviews.llvm.org/D116976
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -90,7 +90,10 @@
-DCMAKE_ASM_COMPILER_WORKS=ON
${COMMON_CMAKE_ARGS}
${BUILTINS_CMAKE_ARGS}
- PASSTHROUGH_PREFIXES COMPILER_RT
+ PASSTHROUGH_PREFIXES CMAKE_OSX
+ COMPILER_RT
+ DARWIN
+ SANITIZER
USE_TOOLCHAIN
TARGET_TRIPLE ${TARGET_TRIPLE}
${EXTRA_ARGS})
@@ -181,10 +184,10 @@
if (${canon_name} STREQUAL "OPENMP")
list(APPEND prefixes "LIBOMP" "LIBOMPTARGET")
endif()
- # Many compiler-rt options start with SANITIZER_ rather than COMPILER_RT_,
- # so when compiler-rt is enabled, consider both.
+ # Many compiler-rt options start with SANITIZER_ and DARWIN_ rather than
+ # COMPILER_RT_, so when compiler-rt is enabled, consider both.
if(canon_name STREQUAL "COMPILER_RT")
- list(APPEND prefixes SANITIZER)
+ list(APPEND prefixes SANITIZER DARWIN)
endif()
string(FIND ${projName} "lib" LIB_IDX)
@@ -241,7 +244,8 @@
-DCMAKE_ASM_COMPILER_WORKS=ON
${COMMON_CMAKE_ARGS}
${RUNTIMES_CMAKE_ARGS}
- PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
+ PASSTHROUGH_PREFIXES CMAKE_OSX
+ LLVM_ENABLE_RUNTIMES
LLVM_USE_LINKER
${ARG_PREFIXES}
EXTRA_TARGETS ${extra_targets}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116976.402138.patch
Type: text/x-patch
Size: 1992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220122/7005b60b/attachment.bin>
More information about the llvm-commits
mailing list