diff options
author | Aaron Robinson <arobins@microsoft.com> | 2019-05-06 20:19:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 20:19:49 +0300 |
commit | 832441b3a33a6faef03296fe3659eeb2ffcb7f91 (patch) | |
tree | b78b73d3c0b62a3a9b6883eb58a48b5148a83d7b /src/coreclr/pgosupport.cmake | |
parent | 264fd0e69d97a259bb6eb3afc7759801fd269b63 (diff) |
Port all managed product binaries to use SDK style projects (dotnet/coreclr#24285)
Convert managed product binary to use SDK project system.
- Uses Arcade for versions strings
- Overrides Arcade defined output paths - should change in the future
Commit migrated from https://github.com/dotnet/coreclr/commit/099177b0899156a4e8a352083a273805240c0ccd
Diffstat (limited to 'src/coreclr/pgosupport.cmake')
-rw-r--r-- | src/coreclr/pgosupport.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake index bc331be6a58..dec050033e0 100644 --- a/src/coreclr/pgosupport.cmake +++ b/src/coreclr/pgosupport.cmake @@ -28,7 +28,9 @@ function(add_pgo TargetName) endif(WIN32) elseif(CLR_CMAKE_PGO_OPTIMIZE) # If we don't have profile data availble, gracefully fall back to a non-PGO opt build - if(EXISTS ${ProfilePath}) + if(NOT EXISTS ${ProfilePath}) + message("PGO data file NOT found: ${ProfilePath}") + else(NOT EXISTS ${ProfilePath}) if(WIN32) set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELEASE " /LTCG /USEPROFILE:PGD=${ProfilePath}") set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELWITHDEBINFO " /LTCG /USEPROFILE:PGD=${ProfilePath}") @@ -46,6 +48,6 @@ function(add_pgo TargetName) endif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6) endif(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO) endif(WIN32) - endif(EXISTS ${ProfilePath}) + endif(NOT EXISTS ${ProfilePath}) endif(CLR_CMAKE_PGO_INSTRUMENT) endfunction(add_pgo) |