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 committed Jan 29, 2025
1 parent c9f8ada commit 9379ec1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
6 changes: 0 additions & 6 deletions deps.windows/40-detours.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ function Build {
Target = $Target
}

if ( $Target -eq 'x86' ) {
$Params += @{
HostArchitecture = $Target
}
}

Invoke-DevShell @Params
}

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 9379ec1

Please sign in to comment.