summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorHadi Brais <hadi.b@live.com>2015-06-06 19:18:06 +0530
committerHadi Brais <hadi.b@live.com>2015-06-07 18:30:54 +0530
commit2b6efaeed3b263b3be0be46716205152567e854a (patch)
tree44027b3ceaf95134e13b35be04587b8ed056b14e /build.cmd
parent4b21be40517f1348d7f223726decb0f719d09a4b (diff)
downloadcoreclr-2b6efaeed3b263b3be0be46716205152567e854a.tar.gz
coreclr-2b6efaeed3b263b3be0be46716205152567e854a.tar.bz2
coreclr-2b6efaeed3b263b3be0be46716205152567e854a.zip
build,win: Enables Whole Program Optimization.
* Enables whole program optimization for release configuration on Windows. * Fixes all messages "/LTCG specified but no code generation required; remove /LTCG from link command line to improve linker performance" which slow down the build process. * Fixes all messages "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance" which slow down the build process. * The previous two fixes work in Release and Debug builds on Windows. Issue-URL: #1086
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.cmd b/build.cmd
index 049f76b918..2d874aabce 100644
--- a/build.cmd
+++ b/build.cmd
@@ -147,7 +147,7 @@ exit /b 1
:GenVSSolution
:: Regenerate the VS solution
pushd "%__IntermediatesDir%"
-call "%__SourceDir%\pal\tools\gen-buildsys-win.bat" "%__ProjectDir%" %__VSVersion%
+call "%__SourceDir%\pal\tools\gen-buildsys-win.bat" "%__ProjectDir%" %__VSVersion% %__BuildType%
popd
:BuildComponents