[PATCH] [compiler-rt] Fix the CMake build when setting MACOSX_DEPLOYMENT_TARGET
Hans Wennborg
hans at chromium.org
Tue Aug 12 12:05:39 PDT 2014
Hi samsonov,
If we don't reset CMAKE_OSX_DEPLOYMENT_TARGET, it will end up in
CFLAGS together with the -mmacosx-version-min that we set,
and the compiler errors about the conflict.
http://reviews.llvm.org/D4873
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -291,6 +291,7 @@
else()
set(SANITIZER_MIN_OSX_VERSION 10.6)
endif()
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "") # We're setting the flag manually below.
set(DARWIN_osx_CFLAGS -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION})
set(DARWIN_iossim_CFLAGS
-mios-simulator-version-min=7.0 -isysroot ${IOSSIM_SDK_DIR})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4873.12411.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140812/f2f37d10/attachment.bin>
More information about the llvm-commits
mailing list