Skip to content

Commit 36286a3

Browse files
authored
Merge pull request #84377 from bnbarham/swap-packaging
[Windows] Include packaging only when requested
2 parents 818d0a0 + e0e4f92 commit 36286a3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

utils/build-windows-toolchain.bat

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set TEMP=%~dp0..\..\tmp
1919
mkdir %TEMP% 2>&1 1>nul
2020
echo set PYTHON_HOME=%PYTHON_HOME%> %TEMP%\call-build.cmd
2121
echo set SKIP_TESTS=%SKIP_TESTS%>> %TEMP%\call-build.cmd
22-
echo set SKIP_PACKAGING=%SKIP_PACKAGING%>> %TEMP%\call-build.cmd
22+
echo set INCLUDE_PACKAGING=%INCLUDE_PACKAGING%>> %TEMP%\call-build.cmd
2323
echo set SKIP_UPDATE_CHECKOUT=%SKIP_UPDATE_CHECKOUT%>> %TEMP%\call-build.cmd
2424
echo set REPO_SCHEME=%REPO_SCHEME%>> %TEMP%\call-build.cmd
2525
echo set WINDOWS_SDKS=%WINDOWS_SDKS%>> %TEMP%\call-build.cmd
@@ -66,9 +66,9 @@ set TestArg=-Test lld,lldb,swift,dispatch,foundation,xctest,swift-format,sourcek
6666
for %%I in (%SKIP_TESTS%) do (call set TestArg=%%TestArg:%%I,=%%)
6767
if "%TestArg:~-1%"=="," (set TestArg=%TestArg:~0,-1%) else (set TestArg= )
6868

69-
:: Build the -SkipPackaging argument, if any
70-
set SkipPackagingArg=-SkipPackaging
71-
if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
69+
:: Build the packaging arguments (skipped for normal PRs and an added stage for toolchain PRs)
70+
set "PackagingArg=-SkipPackaging"
71+
if not "%INCLUDE_PACKAGING%"=="" set "PackagingArg=-Stage %PackageRoot%"
7272

7373
:: Build the -WindowsSDKArchitectures argument, if any, otherwise build all the SDKs.
7474
set "WindowsSDKArchitecturesArg= "
@@ -86,10 +86,9 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
8686
-SourceCache %SourceRoot% ^
8787
-BinaryCache %BuildRoot% ^
8888
-ImageRoot %BuildRoot% ^
89-
%SkipPackagingArg% ^
89+
%PackagingArg% ^
9090
%WindowsSDKArchitecturesArg% ^
9191
%TestArg% ^
92-
-SkipPackaging ^
9392
-IncludeSBoM ^
9493
-Summary || (exit /b 1)
9594

0 commit comments

Comments
 (0)