summaryrefslogtreecommitdiff
path: root/pgosupport.cmake
diff options
context:
space:
mode:
authorAaron Robinson <arobins@microsoft.com>2019-05-06 10:19:49 -0700
committerGitHub <noreply@github.com>2019-05-06 10:19:49 -0700
commit099177b0899156a4e8a352083a273805240c0ccd (patch)
tree85c3f7c449ee3ed8b725c7212379914e7706e74f /pgosupport.cmake
parent7681c19e4a6f2b5a82abf6268e96eb9140f08bb7 (diff)
downloadcoreclr-099177b0899156a4e8a352083a273805240c0ccd.tar.gz
coreclr-099177b0899156a4e8a352083a273805240c0ccd.tar.bz2
coreclr-099177b0899156a4e8a352083a273805240c0ccd.zip
Port all managed product binaries to use SDK style projects (#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
Diffstat (limited to 'pgosupport.cmake')
-rw-r--r--pgosupport.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/pgosupport.cmake b/pgosupport.cmake
index bc331be6a5..dec050033e 100644
--- a/pgosupport.cmake
+++ b/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)