Skip to content

Commit cb4cb70

Browse files
authored
Merge pull request #84571 from compnerd/windows-ci
windows: adjust the build invocation for Windows CI
2 parents 55a38ba + b75a892 commit cb4cb70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/build-windows-toolchain.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ if "%TestArg:~-1%"=="," (set TestArg=%TestArg:~0,-1%) else (set TestArg= )
7070
set "PackagingArg=-SkipPackaging"
7171
if not "%INCLUDE_PACKAGING%"=="" set "PackagingArg=-Stage %PackageRoot%"
7272

73-
:: Build the -WindowsSDKArchitectures argument, if any, otherwise build all the SDKs.
74-
set "WindowsSDKArchitecturesArg= "
75-
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArchitecturesArg=-Windows -WindowsSDKArchitectures %WINDOWS_SDKS% -WindowsSDKLinkModes dynamic"
73+
:: Build the arguments related to Windows SDK builds
74+
set "WindowsSDKArgs=-Windows -WindowsSDKLinkModes dynamic"
75+
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArgs=-Windows -WindowsSDKArchitectures %WINDOWS_SDKS% -WindowsSDKLinkModes dynamic"
7676

7777
:: Build the -HostArchName argument, if any.
7878
set "HostArchNameArg="
@@ -86,8 +86,8 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
8686
-SourceCache %SourceRoot% ^
8787
-BinaryCache %BuildRoot% ^
8888
-ImageRoot %BuildRoot% ^
89+
%WindowsSDKArgs% ^
8990
%PackagingArg% ^
90-
%WindowsSDKArchitecturesArg% ^
9191
%TestArg% ^
9292
-IncludeSBoM ^
9393
-Summary || (exit /b 1)

0 commit comments

Comments
 (0)