summaryrefslogtreecommitdiff
path: root/pgosupport.cmake
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2017-06-28 17:37:51 (GMT)
committerPat Gavlin <pagavlin@microsoft.com>2017-06-28 18:35:54 (GMT)
commit3c1c553bc9c27dab04258ce184c74af151f6a311 (patch)
treee72459c630c44967260662d3930043a398bd68b1 /pgosupport.cmake
parent217ab30d021f27be6fe4f35126a88e592366acbf (diff)
downloadcoreclr-3c1c553bc9c27dab04258ce184c74af151f6a311.zip
coreclr-3c1c553bc9c27dab04258ce184c74af151f6a311.tar.gz
coreclr-3c1c553bc9c27dab04258ce184c74af151f6a311.tar.bz2
Add a flag to build.{sh,cmd} to disable PGO.
This is helpful when performing JIT throughput measurements.
Diffstat (limited to 'pgosupport.cmake')
-rw-r--r--pgosupport.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgosupport.cmake b/pgosupport.cmake
index e92923f..9472866 100644
--- a/pgosupport.cmake
+++ b/pgosupport.cmake
@@ -34,7 +34,7 @@ function(add_pgo TargetName)
set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS " -flto -fuse-ld=gold -fprofile-instr-generate")
endif(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO)
endif(WIN32)
- else(CLR_CMAKE_PGO_INSTRUMENT)
+ 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(WIN32)