summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2017-12-30 11:49:51 -0800
committerTanner Gooding <tagoo@outlook.com>2017-12-30 16:10:55 -0800
commit80b0245387eca05a84abc33b4d5bb01b719d8ae0 (patch)
treeb59ea4f86cf10fdcb56be668732a7d8e39cfcb9f /build.cmd
parent64ea34832c4f7417106959f932c746d08dd164a4 (diff)
downloadcoreclr-80b0245387eca05a84abc33b4d5bb01b719d8ae0.tar.gz
coreclr-80b0245387eca05a84abc33b4d5bb01b719d8ae0.tar.bz2
coreclr-80b0245387eca05a84abc33b4d5bb01b719d8ae0.zip
Updating build.cmd to support 'generatelayout' when 'skiptests' is specified.
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd19
1 files changed, 19 insertions, 0 deletions
diff --git a/build.cmd b/build.cmd
index fd17ffdf0e..3d4e9fd664 100644
--- a/build.cmd
+++ b/build.cmd
@@ -139,6 +139,7 @@ set __BuildTests=1
set __BuildPackages=1
set __BuildNativeCoreLib=1
set __RestoreOptData=1
+set __GenerateLayout=0
set __CrossgenAltJit=
@REM CMD has a nasty habit of eating "=" on the argument list, so passing:
@@ -224,6 +225,7 @@ if /i "%1" == "skipnative" (set __BuildNative=0&set processedArgs=!proc
if /i "%1" == "skiptests" (set __BuildTests=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "skipbuildpackages" (set __BuildPackages=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "skiprestoreoptdata" (set __RestoreOptData=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+if /i "%1" == "generatelayout" (set __GenerateLayout=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "usenmakemakefiles" (set __NMakeMakefiles=1&set __ConfigureOnly=1&set __BuildNative=1&set __BuildNativeCoreLib=0&set __BuildCoreLib=0&set __BuildTests=0&set __BuildPackages=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "pgoinstrument" (set __PgoInstrument=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "nopgooptimize" (set __PgoOptimize=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
@@ -721,6 +723,23 @@ 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 if %__GenerateLayout% EQU 1 (
+ echo %__MsgPrefix%Generating layout for %__BuildOS%.%__BuildArch%.%__BuildType%
+
+ REM Construct the arguments to pass to the runtest build script.
+
+ rem arm64 builds currently use private toolset which has not been released yet
+ REM TODO, remove once the toolset is open.
+ if not "%__ToolsetDir%" == "" call :PrivateToolSet
+
+ set NEXTCMD=call %__ProjectDir%\test\runtest.cmd %__BuildArch% %__BuildType% GenerateLayoutOnly %__UnprocessedBuildArgs%
+ echo %__MsgPrefix%!NEXTCMD!
+ !NEXTCMD!
+
+ 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 =========================================================================================