From: Chris Bieneman Date: Wed, 19 Oct 2016 21:12:04 +0000 (+0000) Subject: [CMake] Support thin LTO in PGO CMake cache X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=158474dd7b2414aa831a7e61e2cd18fc27effad7;p=clang [CMake] Support thin LTO in PGO CMake cache This allows you to set PGO_INSTRUMENT_LTO=Thin and have it work correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284646 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/caches/PGO.cmake b/cmake/caches/PGO.cmake index 1f298fabec..7e4a001129 100644 --- a/cmake/caches/PGO.cmake +++ b/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)