diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2018-03-27 14:11:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 14:11:34 -0700 |
commit | f284e8f6e8f81a69858916455bbcdb0568f8fc51 (patch) | |
tree | 407e656d98ed068d1299fa2b2300f6145c0e5dcc /pgosupport.cmake | |
parent | 5142664458905a6f5164fd4e4baf483d8aa2b99e (diff) | |
download | coreclr-f284e8f6e8f81a69858916455bbcdb0568f8fc51.tar.gz coreclr-f284e8f6e8f81a69858916455bbcdb0568f8fc51.tar.bz2 coreclr-f284e8f6e8f81a69858916455bbcdb0568f8fc51.zip |
Turn off PGO unprofiled warning on Linux (#17262) (#17271)
This warning will break the build when new files are added to the build that do not have PGO data, meaning that release builds will be broken until a new PGO collection can be run. We should not break the build if there are not counts for new files.
Diffstat (limited to 'pgosupport.cmake')
-rw-r--r-- | pgosupport.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgosupport.cmake b/pgosupport.cmake index 96ff80af8d..bc331be6a5 100644 --- a/pgosupport.cmake +++ b/pgosupport.cmake @@ -36,7 +36,7 @@ function(add_pgo TargetName) if(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO) if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6) if(HAVE_LTO) - target_compile_options(${TargetName} PRIVATE -flto -fprofile-instr-use=${ProfilePath} -Wno-profile-instr-out-of-date) + target_compile_options(${TargetName} PRIVATE -flto -fprofile-instr-use=${ProfilePath} -Wno-profile-instr-out-of-date -Wno-profile-instr-unprofiled) set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS " -flto -fuse-ld=gold -fprofile-instr-use=${ProfilePath}") else(HAVE_LTO) message(WARNING "LTO is not supported, skipping profile guided optimizations") |