summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2017-02-21 12:38:46 -0800
committerwtgodbe <wigodbe@microsoft.com>2017-02-21 12:53:20 -0800
commit13ffcc4fcfc3220e4fdf47878ff4be8297361201 (patch)
treeea715cf467366ac9053f1ad6af70eccf44ea37a7 /build.cmd
parent8fa99f1cd6fcf4323ee71ab0202b40fb125c5014 (diff)
downloadcoreclr-13ffcc4fcfc3220e4fdf47878ff4be8297361201.tar.gz
coreclr-13ffcc4fcfc3220e4fdf47878ff4be8297361201.tar.bz2
coreclr-13ffcc4fcfc3220e4fdf47878ff4be8297361201.zip
Have Crossgen Failures exit in a dedicated exit routine
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.cmd b/build.cmd
index a37428ca6b..1e69da4337 100644
--- a/build.cmd
+++ b/build.cmd
@@ -390,14 +390,14 @@ if %__BuildNativeCoreLib% EQU 1 (
echo %__MsgPrefix%Error: CrossGen System.Private.CoreLib build failed. Refer to %__CrossGenCoreLibLog%
:: Put it in the same log, helpful for Jenkins
type %__CrossGenCoreLibLog%
- exit /b 1
+ goto CrossgenFailure
)
"%__CrossgenExe%" /Platform_Assemblies_Paths "%__BinDir%" /CreatePdb "%__BinDir%\PDB" "%__BinDir%\System.Private.CoreLib.ni.dll" >> "%__CrossGenCoreLibLog%" 2>&1
if NOT !errorlevel! == 0 (
echo %__MsgPrefix%Error: CrossGen /CreatePdb System.Private.CoreLib build failed. Refer to %__CrossGenCoreLibLog%
:: Put it in the same log, helpful for Jenkins
type %__CrossGenCoreLibLog%
- exit /b 1
+ goto CrossgenFailure
)
echo %__MsgPrefix%Generating native image of MScorlib facade for %__BuildOS%.%__BuildArch%.%__BuildType%
@@ -422,7 +422,7 @@ if %__BuildNativeCoreLib% EQU 1 (
echo %__MsgPrefix%Error: CrossGen mscorlib facade build failed. Refer to !__CrossGenCoreLibLog!
:: Put it in the same log, helpful for Jenkins
type %__CrossGenCoreLibLog%
- exit /b 1
+ goto CrossgenFailure
)
)
@@ -561,6 +561,9 @@ REM === Helper routines
REM ===
REM =========================================================================================
+:CrossgenFailure
+exit /b 1
+
:Usage
echo.
echo Build the CoreCLR repo.