[compiler-rt] r248940 - [CMake] [Darwin] [builtins] Add support for building libclang_rt.10.4.a

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 13:26:14 PDT 2015


Author: cbieneman
Date: Wed Sep 30 15:26:14 2015
New Revision: 248940

URL: http://llvm.org/viewvc/llvm-project?rev=248940&view=rev
Log:
[CMake] [Darwin] [builtins] Add support for building libclang_rt.10.4.a

This builtin library is used when setting the OS X deployment target to 10.4, which we still support.

Modified:
    compiler-rt/trunk/cmake/config-ix.cmake

Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=248940&r1=248939&r2=248940&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Wed Sep 30 15:26:14 2015
@@ -341,6 +341,17 @@ if(APPLE)
       set(CAN_TARGET_${arch} 1)
     endforeach()
 
+    # Need to build a 10.4 compatible libclang_rt
+    set(DARWIN_10.4_SYSROOT ${DARWIN_osx_SYSROOT})
+    set(DARWIN_10.4_BUILTIN_MIN_VER 10.4)
+    set(DARWIN_10.4_BUILTIN_MIN_VER_FLAG
+        -mmacosx-version-min=${DARWIN_10.4_BUILTIN_MIN_VER})
+    set(DARWIN_10.4_SKIP_CC_KEXT On)
+    list(APPEND BUILTIN_SUPPORTED_OS 10.4)
+    darwin_test_archs(10.4
+      DARWIN_10.4_ARCHS
+      ${toolchain_arches})
+
     if(DARWIN_iossim_SYSROOT)
       set(DARWIN_iossim_CFLAGS
         ${DARWIN_COMMON_CFLAGS}




More information about the llvm-commits mailing list