summaryrefslogtreecommitdiff
path: root/clang/runtime
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-11-14 22:38:57 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-11-14 22:38:57 +0000
commitd71de87be737746b07b986183ade17bbfe15d5bf (patch)
treede0efcac707f9f97328ae8c65f10db2862ff31ee /clang/runtime
parent1687e01188ad98ba7e05ec9e7fecb70cf5ed23fe (diff)
downloadllvm-d71de87be737746b07b986183ade17bbfe15d5bf.tar.gz
[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
Diffstat (limited to 'clang/runtime')
-rw-r--r--clang/runtime/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt
index 1f0b2d9c2710..896a3abff124 100644
--- a/clang/runtime/CMakeLists.txt
+++ b/clang/runtime/CMakeLists.txt
@@ -77,6 +77,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
-DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
+ -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}
${COMPILER_RT_PASSTHROUGH_VARIABLES}
INSTALL_COMMAND ""
STEP_TARGETS configure build