From 80b0245387eca05a84abc33b4d5bb01b719d8ae0 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Sat, 30 Dec 2017 11:49:51 -0800 Subject: Updating build.cmd to support 'generatelayout' when 'skiptests' is specified. --- build.cmd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'build.cmd') 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 ========================================================================================= -- cgit v1.2.3