summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorRahul Kumar <rahku@microsoft.com>2016-05-03 22:21:57 -0700
committerRahul Kumar <rahku@microsoft.com>2016-05-03 22:21:57 -0700
commit09d6a5d6536adc498917728d3224b1ee7f779d65 (patch)
tree9799aae935ff66351cf08a66cc37e77b514cde94 /build.cmd
parent7eb8accc6846757925ab6f7896d76a204f9fa509 (diff)
parent463322e4e0700d8d839acc4ceed36425bafa65c3 (diff)
downloadcoreclr-09d6a5d6536adc498917728d3224b1ee7f779d65.tar.gz
coreclr-09d6a5d6536adc498917728d3224b1ee7f779d65.tar.bz2
coreclr-09d6a5d6536adc498917728d3224b1ee7f779d65.zip
Merge pull request #4759 from rahku/crossgen
Fix checking of correct errorlevel for crossgen
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 00fc484c28..0d0e7f79b9 100644
--- a/build.cmd
+++ b/build.cmd
@@ -450,7 +450,7 @@ echo %__MsgPrefix%Generating native image of mscorlib for %__BuildOS%.%__BuildAr
set "__CrossGenMScorlibLog=%__LogsDir%\CrossgenMScorlib_%__BuildOS%__%__BuildArch%__%__BuildType%.log"
set "__CrossgenExe=%__CrossComponentBinDir%\crossgen.exe"
"%__CrossgenExe%" /Platform_Assemblies_Paths "%__BinDir%" /out "%__BinDir%\mscorlib.ni.dll" "%__BinDir%\mscorlib.dll" > "%__CrossGenMScorlibLog%" 2>&1
-if errorlevel 1 (
+if NOT errorlevel 0 (
echo %__MsgPrefix%Error: CrossGen mscorlib build failed. Refer to the build log file for details:
echo %__CrossGenMScorlibLog%
exit /b 1