Skip to content

Commit e0604ca

Browse files
committed
build.ps1: make windows SDKs optional
This treats Windows similarly to Android and introduces a new `-Windows` option to build the Windows SDKs.
1 parent 01873c9 commit e0604ca

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
@@ -71,7 +71,7 @@ if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
7171

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

7676
call :CloneRepositories || (exit /b 1)
7777

utils/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3922,7 +3922,7 @@ if (-not $SkipBuild) {
39223922
Invoke-BuildStep Build-Compilers $HostPlatform -Variant "Asserts"
39233923
$KnownPlatforms.Values | Where-Object {
39243924
switch ($_.OS) {
3925-
Windows { $true }
3925+
Windows { $Windows }
39263926
Android { $Android }
39273927
default { $false }
39283928
}

0 commit comments

Comments
 (0)