1set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "") 2set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "") 3set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "") 4 5set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "") 6set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "") 7set(CLANG_BOOTSTRAP_TARGETS 8 generate-profdata 9 stage2 10 stage2-distribution 11 stage2-install-distribution 12 stage2-install-distribution-toolchain 13 stage2-check-all 14 stage2-check-llvm 15 stage2-check-clang 16 stage2-test-suite CACHE STRING "") 17 18if(PGO_INSTRUMENT_LTO) 19 set(BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "") 20 set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "") 21endif() 22 23if(PGO_BUILD_CONFIGURATION) 24 set(EXTRA_ARGS -DPGO_BUILD_CONFIGURATION=${PGO_BUILD_CONFIGURATION}) 25endif() 26 27set(CLANG_BOOTSTRAP_CMAKE_ARGS 28 ${EXTRA_ARGS} 29 -C ${CMAKE_CURRENT_LIST_DIR}/PGO-stage2-instrumented.cmake 30 CACHE STRING "") 31