diff options
author | Hadi Brais <hadi.b@live.com> | 2015-06-06 19:18:06 +0530 |
---|---|---|
committer | Hadi Brais <hadi.b@live.com> | 2015-06-07 18:30:54 +0530 |
commit | 2b6efaeed3b263b3be0be46716205152567e854a (patch) | |
tree | 44027b3ceaf95134e13b35be04587b8ed056b14e /src/pal/tools | |
parent | 4b21be40517f1348d7f223726decb0f719d09a4b (diff) | |
download | coreclr-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 'src/pal/tools')
-rw-r--r-- | src/pal/tools/gen-buildsys-win.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pal/tools/gen-buildsys-win.bat b/src/pal/tools/gen-buildsys-win.bat index 56b22f221f..8935e873fd 100644 --- a/src/pal/tools/gen-buildsys-win.bat +++ b/src/pal/tools/gen-buildsys-win.bat @@ -5,7 +5,7 @@ rem This file invokes cmake and generates the build system for windows. set argC=0 for %%x in (%*) do Set /A argC+=1 -if NOT %argC%==2 GOTO :USAGE +if NOT %argC%==3 GOTO :USAGE if %1=="/?" GOTO :USAGE setlocal @@ -24,13 +24,13 @@ if defined CMakePath goto DoGen for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned "& .\probe-win.ps1"') do %%a :DoGen -"%CMakePath%" "-DCMAKE_USER_MAKE_RULES_OVERRIDE=%basePath%\windows-compiler-override.txt" -G "Visual Studio %__VSString% Win64" %1 +"%CMakePath%" "-DCMAKE_USER_MAKE_RULES_OVERRIDE=%basePath%\windows-compiler-override.txt" "-DCMAKE_BUILD_TYPE=%3" -G "Visual Studio %__VSString% Win64" %1 endlocal GOTO :DONE :USAGE echo "Usage..." - echo "gen-buildsys-win.bat <path to top level CMakeLists.txt> <VSVersion>" + echo "gen-buildsys-win.bat <path to top level CMakeLists.txt> <VSVersion> <BuildType>" echo "Specify the path to the top level CMake file - <ProjectK>/src/NDP" echo "Specify the VSVersion to be used - VS2013 or VS2015" EXIT /B 1 |