r284646 - [CMake] Support thin LTO in PGO CMake cache
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 19 14:12:05 PDT 2016
Author: cbieneman
Date: Wed Oct 19 16:12:04 2016
New Revision: 284646
URL: http://llvm.org/viewvc/llvm-project?rev=284646&view=rev
Log:
[CMake] Support thin LTO in PGO CMake cache
This allows you to set PGO_INSTRUMENT_LTO=Thin and have it work correctly.
Modified:
cfe/trunk/cmake/caches/PGO.cmake
Modified: cfe/trunk/cmake/caches/PGO.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/PGO.cmake?rev=284646&r1=284645&r2=284646&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/PGO.cmake (original)
+++ cfe/trunk/cmake/caches/PGO.cmake Wed Oct 19 16:12:04 2016
@@ -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)
More information about the cfe-commits
mailing list