From a3c149196ccf3dcbbba91e0ebfd919f929d55284 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Wed, 3 Feb 2016 17:23:38 -0800 Subject: [PATCH] Make build.FullCLR.ps1 build RELEASE by default Since we start include CRT runtime inside powershell.exe, the size of executable jumped from 32kb to 1Mb in DEBUG. Release produces about 20kb, so we keep size managable. --- build.FullCLR.ps1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.FullCLR.ps1 b/build.FullCLR.ps1 index c1a3710699..0af4e18c91 100644 --- a/build.FullCLR.ps1 +++ b/build.FullCLR.ps1 @@ -5,7 +5,12 @@ param( "Visual Studio 12 2013 Win64", "Visual Studio 14 2015", "Visual Studio 14 2015 Win64")] - [string]$cmakeGenerator = "" + [string]$cmakeGenerator = "", + + [ValidateSet( + "Debug", + "Release")] + [string]$msbuildConfiguration = "Release" ) $origPWD = $pwd @@ -67,9 +72,9 @@ try { cmake ..\src\powershell-native } - msbuild powershell.sln + msbuild powershell.sln /p:Configuration=$msbuildConfiguration - cp -rec Debug\* $BINFULL + cp -rec $msbuildConfiguration\* $BINFULL } finally {