Skip to content

Commit 5d26d0a

Browse files
authored
Merge pull request #84308 from compnerd/optionality
build.ps1: make windows SDKs optional
2 parents 0e04f00 + e0604ca commit 5d26d0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/build-windows-toolchain.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
7272

7373
:: Build the -WindowsSDKArchitectures argument, if any, otherwise build all the SDKs.
7474
set "WindowsSDKArchitecturesArg= "
75-
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArchitecturesArg=-WindowsSDKArchitectures %WINDOWS_SDKS%"
75+
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArchitecturesArg=-Windows -WindowsSDKArchitectures %WINDOWS_SDKS%"
7676

7777
:: Build the -HostArchName argument, if any.
7878
set "HostArchNameArg="

utils/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@ if (-not $SkipBuild) {
40734073
Invoke-BuildStep Build-Compilers $HostPlatform -Variant "Asserts"
40744074
$KnownPlatforms.Values | Where-Object {
40754075
switch ($_.OS) {
4076-
Windows { $true }
4076+
Windows { $Windows }
40774077
Android { $Android }
40784078
default { $false }
40794079
}

0 commit comments

Comments
 (0)