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 = @{
391
391
}
392
392
393
393
$BuildArchName = if ($env: PROCESSOR_ARCHITEW6432 ) { $env: PROCESSOR_ARCHITEW6432 } else { $env: PROCESSOR_ARCHITECTURE }
394
+ # TODO: Support other cross-compilation scenarios.
394
395
$BuildOS = [OS ]::Windows
396
+ $HostOS = [OS ]::Windows
395
397
396
398
$vswhere = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe"
397
399
$VSInstallRoot = & $vswhere - nologo - latest - products " *" - all - prerelease - property installationPath
@@ -414,8 +416,8 @@ if (-not $PinnedBuild) {
414
416
$PinnedToolchain = [IO.Path ]::GetFileNameWithoutExtension($PinnedBuild )
415
417
416
418
$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" ] }
419
421
default { throw " Unsupported processor architecture" }
420
422
}
421
423
You can’t perform that action at this time.
0 commit comments