From ebe8b83fbc133a5d15d49599283d42e162c24108 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 19 Oct 2016 21:12:04 +0000 Subject: [PATCH] [CMake] Support thin LTO in PGO CMake cache This allows you to set PGO_INSTRUMENT_LTO=Thin and have it work correctly. llvm-svn: 284646 --- clang/cmake/caches/PGO.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/cmake/caches/PGO.cmake b/clang/cmake/caches/PGO.cmake index 1f298fa..7e4a001 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) -- 2.7.4