brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 36937f6 Raw
61 lines · plain
1# This file sets up a CMakeCache for Apple-style bootstrap builds. It can be2# used on any Darwin system to approximate Apple Clang builds.3 4if($ENV{DT_TOOLCHAIN_DIR})5  set(CMAKE_INSTALL_PREFIX $ENV{DT_TOOLCHAIN_DIR}/usr/)6else()7  set(CMAKE_INSTALL_PREFIX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.toolchain/usr/)8endif()9 10set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "")11set(CLANG_VENDOR Apple CACHE STRING "")12set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "")13set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")14set(LLVM_INCLUDE_UTILS OFF CACHE BOOL "")15set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")16set(CLANG_INCLUDE_TESTS OFF CACHE BOOL "")17set(COMPILER_RT_INCLUDE_TESTS OFF CACHE BOOL "")18set(COMPILER_RT_BUILD_SANITIZERS OFF CACHE BOOL "")19set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")20set(LLVM_ENABLE_ZLIB OFF CACHE BOOL "")21set(LLVM_ENABLE_BACKTRACES ON CACHE BOOL "")22set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")23set(CLANG_SPAWN_CC1 ON CACHE BOOL "")24set(CLANG_BOOTSTRAP_PASSTHROUGH25  CMAKE_OSX_ARCHITECTURES26  CACHE STRING "")27 28# Disabling embedded darwin compiler-rt on stage1 builds is required because we29# don't build stage1 to support arm code generation.30set(COMPILER_RT_ENABLE_IOS OFF CACHE BOOL "")31set(COMPILER_RT_ENABLE_WATCHOS OFF CACHE BOOL "")32set(COMPILER_RT_ENABLE_TVOS OFF CACHE BOOL "")33 34set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")35set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")36 37set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS OFF CACHE BOOL "")38set(LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "")39 40set(CLANG_BOOTSTRAP_TARGETS41  generate-order-file42  check-all43  check-llvm44  check-clang45  llvm-config46  test-suite47  test-depends48  llvm-test-depends49  clang-test-depends50  distribution51  install-distribution52  install-xcode-toolchain53  install-distribution-toolchain54  clang CACHE STRING "")55 56#bootstrap57set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")58set(CLANG_BOOTSTRAP_CMAKE_ARGS59  -C ${CMAKE_CURRENT_LIST_DIR}/Apple-stage2.cmake60  CACHE STRING "")61