[PATCH] [libc++] Fix the CMake build on Mac when setting MACOSX_DEPLOYMENT_TARGET=10.6

Hans Wennborg hans at chromium.org
Tue Aug 12 10:41:13 PDT 2014


Closed by commit rL215463 (authored by @hans).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4860

Files:
  libcxx/trunk/lib/CMakeLists.txt

Index: libcxx/trunk/lib/CMakeLists.txt
===================================================================
--- libcxx/trunk/lib/CMakeLists.txt
+++ libcxx/trunk/lib/CMakeLists.txt
@@ -54,7 +54,7 @@
     list(APPEND compile_flags "-U__STRICT_ANSI__")
     list(APPEND link_flags
       "-compatibility_version 1"
-      "-current_version ${LIBCXX_VERSION}"
+      "-current_version 1"
       "-install_name /usr/lib/libc++.1.dylib"
       "-Wl,-reexport_library,/usr/lib/libc++abi.dylib"
       "-Wl,-unexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++unexp.exp"
@@ -84,6 +84,7 @@
   endif()
 endif()
 
+string(REPLACE ";" " " compile_flags "${compile_flags}")
 string(REPLACE ";" " " link_flags "${link_flags}")
 
 set_target_properties(cxx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4860.12405.patch
Type: text/x-patch
Size: 747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140812/70f63f04/attachment.bin>


More information about the cfe-commits mailing list