Skip to content

Commit f3c9532

Browse files
committed
PR Feedback.
1 parent 498f8f7 commit f3c9532

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,9 @@ $KnownNDKs = @{
391391
}
392392

393393
$BuildArchName = if ($env:PROCESSOR_ARCHITEW6432) { $env:PROCESSOR_ARCHITEW6432 } else { $env:PROCESSOR_ARCHITECTURE }
394+
# TODO: Support other cross-compilation scenarios.
394395
$BuildOS = [OS]::Windows
396+
$HostOS = [OS]::Windows
395397

396398
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
397399
$VSInstallRoot = & $vswhere -nologo -latest -products "*" -all -prerelease -property installationPath
@@ -414,8 +416,8 @@ if (-not $PinnedBuild) {
414416
$PinnedToolchain = [IO.Path]::GetFileNameWithoutExtension($PinnedBuild)
415417

416418
$HostPlatform = switch ($HostArchName) {
417-
"AMD64" { $KnownPlatforms[$BuildOS.ToString() + "X64"] }
418-
"ARM64" { $KnownPlatforms[$BuildOS.ToString() + "ARM64"] }
419+
"AMD64" { $KnownPlatforms[$HostOS.ToString() + "X64"] }
420+
"ARM64" { $KnownPlatforms[$HostOS.ToString() + "ARM64"] }
419421
default { throw "Unsupported processor architecture" }
420422
}
421423

0 commit comments

Comments
 (0)