1# This file sets up a CMakeCache for Apple-style stage2 bootstrap. It is 2# specified by the stage1 build. 3 4set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 CACHE STRING "") 5set(PACKAGE_VENDOR Apple CACHE STRING "") 6set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "") 7set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "") 8set(LLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD OFF CACHE BOOL "") 9set(CLANG_TOOL_SCAN_BUILD_BUILD OFF CACHE BOOL "") 10set(CLANG_TOOL_SCAN_VIEW_BUILD OFF CACHE BOOL "") 11set(CLANG_LINKS_TO_CREATE clang++ cc c++ CACHE STRING "") 12set(CMAKE_MACOSX_RPATH ON CACHE BOOL "") 13set(LLVM_ENABLE_ZLIB ON CACHE BOOL "") 14set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "") 15set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "") 16set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "") 17set(BUG_REPORT_URL "http://developer.apple.com/bugreporter/" CACHE STRING "") 18 19set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "Build Compiler-RT with just-built clang") 20set(COMPILER_RT_ENABLE_IOS ON CACHE BOOL "Build iOS Compiler-RT libraries") 21 22# Make unit tests (if present) part of the ALL target 23set(LLVM_BUILD_TESTS ON CACHE BOOL "") 24 25set(LLVM_ENABLE_LTO ON CACHE BOOL "") 26set(CMAKE_C_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "") 27set(CMAKE_CXX_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "") 28set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "") 29set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "") 30set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") 31 32set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "") 33set(LIBCXX_INSTALL_HEADERS ON CACHE BOOL "") 34set(LIBCXX_INCLUDE_TESTS OFF CACHE BOOL "") 35set(LLVM_LTO_VERSION_OFFSET 3000 CACHE STRING "") 36 37# setup toolchain 38set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") 39set(LLVM_TOOLCHAIN_TOOLS 40 llvm-dsymutil 41 llvm-cov 42 llvm-dwarfdump 43 llvm-profdata 44 llvm-objdump 45 llvm-nm 46 llvm-size 47 CACHE STRING "") 48 49set(LLVM_DISTRIBUTION_COMPONENTS 50 clang 51 LTO 52 clang-format 53 clang-headers 54 libcxx-headers 55 ${LLVM_TOOLCHAIN_TOOLS} 56 CACHE STRING "") 57 58# test args 59 60set(LLVM_LIT_ARGS "--xunit-xml-output=testresults.xunit.xml -v" CACHE STRING "") 61