Skip to content

Commit 9c83ae4

Browse files
Merge pull request #82188 from swiftlang/charles-zablit/lldb/new-lldb-windows-bot
[windows] make WindowsSDKs configurable through env variables
2 parents 1b1e9d4 + 344d24d commit 9c83ae4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build-windows-toolchain.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ if "%TestArg:~-1%"=="," (set TestArg=%TestArg:~0,-1%) else (set TestArg= )
6868
set SkipPackagingArg=-SkipPackaging
6969
if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
7070

71+
:: Build the -WindowsSDKs argument, if any, otherwise build all the SDKs.
72+
set "WindowsSDKsArg= "
73+
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKsArg=-WindowsSDKs %WINDOWS_SDKS%"
74+
7175
call :CloneRepositories || (exit /b 1)
7276

7377
:: We only have write access to BuildRoot, so use that as the image root.
@@ -76,6 +80,7 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
7680
-BinaryCache %BuildRoot% ^
7781
-ImageRoot %BuildRoot% ^
7882
%SkipPackagingArg% ^
83+
%WindowsSDKsArg% ^
7984
%TestArg% ^
8085
-Stage %PackageRoot% ^
8186
-Summary || (exit /b 1)

0 commit comments

Comments
 (0)