1# This file sets up a CMakeCache for the second stage of a simple distribution 2# bootstrap build. 3 4set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;lld" CACHE STRING "") 5set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi" CACHE STRING "") 6 7set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") 8 9set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") 10set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -gline-tables-only -DNDEBUG" CACHE STRING "") 11set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -gline-tables-only -DNDEBUG" CACHE STRING "") 12 13# setup toolchain 14set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") 15set(LLVM_TOOLCHAIN_TOOLS 16 dsymutil 17 llvm-cov 18 llvm-dwarfdump 19 llvm-profdata 20 llvm-objdump 21 llvm-nm 22 llvm-size 23 CACHE STRING "") 24 25set(LLVM_DISTRIBUTION_COMPONENTS 26 clang 27 LTO 28 clang-format 29 clang-resource-headers 30 builtins 31 runtimes 32 ${LLVM_TOOLCHAIN_TOOLS} 33 CACHE STRING "") 34