File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments