Merge pull request #804 from cmderdev/buildscriptchange

Fix build script not exiting on msbuild failure.
This commit is contained in:
Martin Kemp 2016-02-08 18:41:27 +00:00
commit 914ddb8207

View File

@ -105,6 +105,9 @@ Pop-Location
if($Compile) {
Push-Location -Path $launcher
msbuild CmderLauncher.vcxproj /p:configuration=Release
if ($LastExitCode -ne 0) {
throw "msbuild failed to build the executable."
}
Pop-Location
} else {
Write-Warning "You are not building a launcher, Use -Compile"