mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix vs-shell.ps1: HostArch only accepts x86/amd64, not arm64
This commit is contained in:
@@ -36,7 +36,9 @@ if($env:VSINSTALLDIR -eq $null) {
|
||||
Push-Location $vsDir
|
||||
try {
|
||||
$vsShell = (Join-Path -Path $vsDir -ChildPath "Common7\Tools\Launch-VsDevShell.ps1")
|
||||
. $vsShell -Arch $script:VsArch -HostArch $script:VsArch
|
||||
# -HostArch only accepts "x86" or "amd64" — even on native ARM64, use "amd64"
|
||||
$hostArch = if ($script:VsArch -eq "arm64") { "amd64" } else { $script:VsArch }
|
||||
. $vsShell -Arch $script:VsArch -HostArch $hostArch
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user