Skip to content

Commit d71de87

Browse files
committed
[sanitizer] Passthrough CMAKE_OSX_DEPLOYMENT_TARGET when building compiler-rt from clang/runtime/CMakeLists.txt
This breaks some Swift builds, because Swift's build scripts explicitly set CMAKE_OSX_DEPLOYMENT_TARGET. This however isn't propagated to the compiler-rt build, causing build errors. Differential Revision: https://reviews.llvm.org/D26558 llvm-svn: 286898
1 parent 1687e01 commit d71de87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
7777
-DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
7878
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
7979
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
80+
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}
8081
${COMPILER_RT_PASSTHROUGH_VARIABLES}
8182
INSTALL_COMMAND ""
8283
STEP_TARGETS configure build

0 commit comments

Comments
 (0)