From 114b58869def96c720d0c2fd9b77ceccdc924b96 Mon Sep 17 00:00:00 2001 From: Daniel Podder Date: Tue, 4 Oct 2016 01:39:49 -0700 Subject: Add PGO GENPROFILE support to coreclr and clrjit (#7423) * Add PGO GENPROFILE support to coreclr and clrjit Update the cmake build system to enable support for Profile Guided Optimization (PGO) on Windows, and enable this feature for two target binaries (coreclr and clrjit). With this change, toggle between instrumented and profile-optimized settings for target binaries by passing pgoinstrument argument to the build.cmd Assume profile-optimized mode by default. Fall back to regular non-PGO optimized builds if profile data is not available. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 140b7871be..ed55f2e3f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -496,6 +496,11 @@ if(CLR_CROSS_COMPONENTS_BUILD) include(crosscomponents.cmake) endif(CLR_CROSS_COMPONENTS_BUILD) +#------------------- +# Enable PGO support +#------------------- +include(pgosupport.cmake) + #----------------------------------------- # Add Projects # - project which require platform header not clr's -- cgit v1.2.3