1 # Plain options configure the first build.
2 # BOOTSTRAP_* options configure the second build.
3 # BOOTSTRAP_BOOTSTRAP_* options configure the third build.
6 set(LLVM_RELEASE_ENABLE_LTO THIN CACHE STRING "")
8 set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")
10 # Stage 1 Bootstrap Setup
11 set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
12 set(CLANG_BOOTSTRAP_TARGETS
24 stage3-test-suite CACHE STRING "")
27 set(LLVM_ENABLE_PROJECTS "clang" CACHE STRING "")
28 set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
30 # Stage 2 Bootstrap Setup
31 set(BOOTSTRAP_CLANG_ENABLE_BOOTSTRAP ON CACHE STRING "")
32 set(BOOTSTRAP_CLANG_BOOTSTRAP_TARGETS
36 check-clang CACHE STRING "")
39 set(STAGE2_PROJECTS "clang")
40 if (LLVM_RELEASE_ENABLE_LTO)
41 list(APPEND STAGE2_PROJECTS "lld")
43 set(BOOTSTRAP_LLVM_ENABLE_PROJECTS ${STAGE2_PROJECTS} CACHE STRING "")
44 set(BOOTSTRAP_LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
47 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
48 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_PROJECTS "clang;lld;lldb;clang-tools-extra;bolt;polly;mlir;flang" CACHE STRING "")
49 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ${LLVM_RELEASE_ENABLE_LTO} CACHE STRING "")
50 if (LLVM_RELEASE_ENABLE_LTO)
51 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")