summaryrefslogtreecommitdiff
path: root/clang/cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-10-19 21:12:04 +0000
committerChris Bieneman <beanz@apple.com>2016-10-19 21:12:04 +0000
commit0d9d4db8dad69437bcd04ab1b04ec1f576bdc340 (patch)
tree5b3bac47b88b117341c1ec744703eb13ae22f5e6 /clang/cmake
parentb62ace6e92d53fea963506f5a916aba0fc18c458 (diff)
[CMake] Support thin LTO in PGO CMake cache
This allows you to set PGO_INSTRUMENT_LTO=Thin and have it work correctly.
Diffstat (limited to 'clang/cmake')
-rw-r--r--clang/cmake/caches/PGO.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/cmake/caches/PGO.cmake b/clang/cmake/caches/PGO.cmake
index 1f298fabeca..7e4a001129c 100644
--- a/clang/cmake/caches/PGO.cmake
+++ b/clang/cmake/caches/PGO.cmake
@@ -16,8 +16,8 @@ set(CLANG_BOOTSTRAP_TARGETS
stage2-test-suite CACHE STRING "")
if(PGO_INSTRUMENT_LTO)
- set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")
- set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")
+ set(BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "")
+ set(BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ${PGO_INSTRUMENT_LTO} CACHE BOOL "")
endif()
if(PGO_BUILD_CONFIGURATION)