Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2017-06-28 20:37:51 +0300
committerPat Gavlin <pagavlin@microsoft.com>2017-06-28 21:35:54 +0300
commit92c51ff54387421d3a6aa12e30bcd7665546addd (patch)
treebbd4ae30033b467aa7f809045f365c9b98d54deb /src/coreclr/pgosupport.cmake
parent6a3fc3b26add707a64a47a6fcea11a8a213bb4c5 (diff)
Add a flag to build.{sh,cmd} to disable PGO.
This is helpful when performing JIT throughput measurements. Commit migrated from https://github.com/dotnet/coreclr/commit/3c1c553bc9c27dab04258ce184c74af151f6a311
Diffstat (limited to 'src/coreclr/pgosupport.cmake')
-rw-r--r--src/coreclr/pgosupport.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake
index e92923fcb0f..947286628c5 100644
--- a/src/coreclr/pgosupport.cmake
+++ b/src/coreclr/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)