From 561471a4786cfcb4cfcdcb535e51982348c7bd42 Mon Sep 17 00:00:00 2001 From: "Yi Zhang (CLR)" Date: Wed, 5 Jul 2017 23:15:57 -0700 Subject: [PATCH] Automatic build runtime layout when skipping tests (dotnet/coreclr#12587) Commit migrated from https://github.com/dotnet/coreclr/commit/79ce844d7a68a62ad0a49a5db202dabf343ecad7 --- src/coreclr/build.cmd | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/coreclr/build.cmd b/src/coreclr/build.cmd index 11b9181..f9beedd 100644 --- a/src/coreclr/build.cmd +++ b/src/coreclr/build.cmd @@ -506,7 +506,17 @@ if %__BuildTests% EQU 1 ( REM buildtest.cmd has already emitted an error message and mentioned the build log file to examine. exit /b 1 ) -) +) else ( + echo %__MsgPrefix%Skipping test build. Proceeding to building runtime layout for %__BuildOS%.%__BuildArch%.%__BuildType% + + echo "%__ProjectDir%\tests\runtest.cmd %__BuildArch% %__BuildType% %__UnprocessedBuildArgs% GenerateLayoutOnly" + @call %__ProjectDir%\tests\runtest.cmd %__BuildArch% %__BuildType% %__UnprocessedBuildArgs% GenerateLayoutOnly + + if not !errorlevel! == 0 ( + REM runtest.cmd has already emitted an error message and mentioned the build log file to examine. + exit /b 1 + ) +) REM ========================================================================================= REM === -- 2.7.4