[libc++][doc] Update the release notes for LLVM 18 (#78324)
[llvm-project.git] / clang / cmake / caches / PGO.cmake
blobe1d0585e453f825617845ab3fc84e785760cdbb6
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
10   generate-profdata
11   stage2
12   stage2-distribution
13   stage2-install-distribution
14   stage2-install-distribution-toolchain
15   stage2-check-all
16   stage2-check-llvm
17   stage2-check-clang
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 "")
23 endif()
25 if(PGO_BUILD_CONFIGURATION)
26   set(EXTRA_ARGS -DPGO_BUILD_CONFIGURATION=${PGO_BUILD_CONFIGURATION})
27 endif()
29 set(CLANG_BOOTSTRAP_CMAKE_ARGS
30   ${EXTRA_ARGS}
31   -C ${CMAKE_CURRENT_LIST_DIR}/PGO-stage2-instrumented.cmake
32   CACHE STRING "")