Home | History | Annotate | Download | only in caches
      1 # This file sets up a CMakeCache for Apple-style bootstrap builds. It can be
      2 # used on any Darwin system to approximate Apple Clang builds.
      3 
      4 if($ENV{DT_TOOLCHAIN_DIR})
      5   set(CMAKE_INSTALL_PREFIX $ENV{DT_TOOLCHAIN_DIR}/usr/)
      6 else()
      7   set(CMAKE_INSTALL_PREFIX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.toolchain/usr/)
      8 endif()
      9 
     10 set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "")
     11 set(CLANG_VENDOR Apple CACHE STRING "")
     12 set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "")
     13 set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")
     14 set(LLVM_INCLUDE_UTILS OFF CACHE BOOL "")
     15 set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")
     16 set(CLANG_INCLUDE_TESTS OFF CACHE BOOL "")
     17 set(COMPILER_RT_INCLUDE_TESTS OFF CACHE BOOL "")
     18 set(COMPILER_RT_BUILD_SANITIZERS OFF CACHE BOOL "")
     19 
     20 set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
     21 set(PACKAGE_VERSION 7.1.0 CACHE STRING "")
     22 
     23 # LIBCXX Settings
     24 set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
     25 set(LIBCXX_INSTALL_HEADERS ON CACHE BOOL "")
     26 set(LIBCXX_OVERRIDE_DARWIN_INSTALL ON CACHE BOOL "")
     27 
     28 #bootstrap
     29 set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
     30 set(CLANG_BOOTSTRAP_CMAKE_ARGS
     31   -C ${CMAKE_CURRENT_LIST_DIR}/Apple-stage2.cmake
     32   CACHE STRING "")
     33