1 set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")
2 set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
4 set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
5 set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi" CACHE STRING "")
7 set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
8 set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "")
9 set(CLANG_BOOTSTRAP_TARGETS
13 stage2-install-distribution
14 stage2-install-distribution-toolchain
18 stage2-test-suite CACHE STRING "")
20 if(PGO_INSTRUMENT_LTO)
21 set(BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "")
22 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "")
25 if(PGO_BUILD_CONFIGURATION)
26 set(EXTRA_ARGS -DPGO_BUILD_CONFIGURATION=${PGO_BUILD_CONFIGURATION})
29 set(CLANG_BOOTSTRAP_CMAKE_ARGS
31 -C ${CMAKE_CURRENT_LIST_DIR}/PGO-stage2-instrumented.cmake