Skip to content

Commit d953276

Browse files
Update processor architecture check in build script (#1834)
Windows 11 updated and got smarter, this can now also be ARM64 (which is more precise).
1 parent e035fa3 commit d953276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PowerShellEditorServices.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $script:IsNix = $IsLinux -or $IsMacOS
3333
# For Apple M1, pwsh might be getting emulated, in which case we need to check
3434
# for the proc_translated flag, otherwise we can check the architecture.
3535
$script:IsAppleM1 = $IsMacOS -and ((sysctl -n sysctl.proc_translated) -eq 1 -or (uname -m) -eq "arm64")
36-
$script:IsArm64 = $IsWindows -and $env:PROCESSOR_ARCHITECTURE -eq "AMD64"
36+
$script:IsArm64 = $IsWindows -and @("ARM64", "AMD64") -contains $env:PROCESSOR_ARCHITECTURE
3737
$script:BuildInfoPath = [System.IO.Path]::Combine($PSScriptRoot, "src", "PowerShellEditorServices.Hosting", "BuildInfo.cs")
3838
$script:PsesCommonProps = [xml](Get-Content -Raw "$PSScriptRoot/PowerShellEditorServices.Common.props")
3939

0 commit comments

Comments
 (0)