Skip to content

Commit

Permalink
deps.windows: Fix architecture mismatch when building on ARM64 host
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav authored and RytoEX committed Jan 29, 2025
1 parent c9f8ada commit 14b180d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deps.windows/40-detours.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Build {
Target = $Target
}

if ( $Target -eq 'x86' ) {
if ( $env:CI -ne $null -and $Target -eq 'x86' ) {
$Params += @{
HostArchitecture = $Target
}
Expand Down
9 changes: 1 addition & 8 deletions utils.pwsh/Setup-Host.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,4 @@ function Cleanup {
Log-Debug "Running Cleanup actions"
}

function Get-HostArchitecture {
$Host64Bit = [System.Environment]::Is64BitOperatingSystem
$HostArchitecture = ('x86', 'x64')[$Host64Bit]

return $HostArchitecture
}

$script:HostArchitecture = Get-HostArchitecture
$script:HostArchitecture = ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture).ToString().ToLower()

0 comments on commit 14b180d

Please sign in to comment.