Debian Codegraph @

llvm-project/clang/cmake/caches/PGO.cmake

raw
1 set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")
2 set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
3
4 set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
5 set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi" CACHE STRING "")
6
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 "")
19
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()
24
25 if(PGO_BUILD_CONFIGURATION)
26 set(EXTRA_ARGS -DPGO_BUILD_CONFIGURATION=${PGO_BUILD_CONFIGURATION})
27 endif()
28
29 set(CLANG_BOOTSTRAP_CMAKE_ARGS
30 ${EXTRA_ARGS}
31 -C ${CMAKE_CURRENT_LIST_DIR}/PGO-stage2-instrumented.cmake
32 CACHE STRING "")