diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2018-03-27 23:23:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 23:23:45 +0300 |
commit | 956f7729f890d9092a928408b1d9c4d6e61b0a37 (patch) | |
tree | 5ab7139cdda10a40c25eb552e35b4eb43cf97ecd /src/coreclr/pgosupport.cmake | |
parent | c31c46ac254a9c94dfe05976426fd6c554910239 (diff) |
Turn off PGO unprofiled warning on Linux (dotnet/coreclr#17262)
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.
Commit migrated from https://github.com/dotnet/coreclr/commit/bfa1881ab5b65175f97119b74ef127e08de882e1
Diffstat (limited to 'src/coreclr/pgosupport.cmake')
-rw-r--r-- | src/coreclr/pgosupport.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake index 96ff80af8d3..bc331be6a58 100644 --- a/src/coreclr/pgosupport.cmake +++ b/src/coreclr/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") |