From: wtgodbe Date: Tue, 21 Feb 2017 20:38:46 +0000 (-0800) Subject: Have Crossgen Failures exit in a dedicated exit routine X-Git-Tag: submit/tizen/20210909.063632~11030^2~8011^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d07dfc90dd7d1b2ad5d8e28dfad86e340944a60;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Have Crossgen Failures exit in a dedicated exit routine Commit migrated from https://github.com/dotnet/coreclr/commit/13ffcc4fcfc3220e4fdf47878ff4be8297361201 --- diff --git a/src/coreclr/build.cmd b/src/coreclr/build.cmd index a37428c..1e69da4 100644 --- a/src/coreclr/build.cmd +++ b/src/coreclr/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.