Automatic build runtime layout when skipping tests (dotnet/coreclr#12587)
authorYi Zhang (CLR) <yizhang82@users.noreply.github.com>
Thu, 6 Jul 2017 06:15:57 +0000 (23:15 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2017 06:15:57 +0000 (23:15 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/79ce844d7a68a62ad0a49a5db202dabf343ecad7

src/coreclr/build.cmd

index 11b9181..f9beedd 100644 (file)
@@ -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 ===