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:
authorElinor Fung <elfung@microsoft.com>2021-02-05 02:16:53 +0300
committerGitHub <noreply@github.com>2021-02-05 02:16:53 +0300
commite7e7dd19b7da0f4bd2b84e4ab92eea849a8c6156 (patch)
tree1a7a7cdb9d9f14dbcc55c5df4d54c61be49ab52d /src/coreclr/build-runtime.cmd
parent8241168b2d85e8e7ff25fa8984d91fed8da7922a (diff)
Update build-runtime to disable PGO when not building release (#47865)
Diffstat (limited to 'src/coreclr/build-runtime.cmd')
-rw-r--r--src/coreclr/build-runtime.cmd5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coreclr/build-runtime.cmd b/src/coreclr/build-runtime.cmd
index 89dfc8f35d4..22385f371ae 100644
--- a/src/coreclr/build-runtime.cmd
+++ b/src/coreclr/build-runtime.cmd
@@ -273,6 +273,11 @@ if %__SkipCrossArchNative% EQU 0 (
REM Set the remaining variables based upon the determined build configuration
+REM PGO optimization is only applied to release builds (see pgosupport.cmake). Disable PGO by default if not building release.
+if NOT "%__BuildType%"=="Release" (
+ set __PgoOptimize=0
+)
+
if %__PgoOptimize%==0 (
set __RestoreOptData=0
)