Skip to content

Commit 8e80b79

Browse files
committed
Fix ARM64 host detection: force win-x64 Firebird on ARM64 Windows
On windows-11-arm building for x64 (emulation), Architecture is 'x64' so FirebirdRid was empty. PSFirebird auto-detected win-arm64 which has no usable Firebird binaries. Detect ARM64 host and explicitly request win-x64 Firebird.
1 parent f989cd7 commit 8e80b79

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

firebird-odbc-driver.build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ $FirebirdRid = switch ($Architecture) {
5151
default { '' }
5252
}
5353

54+
# On ARM64 Windows hosts building for x64 (emulation), explicitly request
55+
# win-x64 Firebird since PSFirebird would otherwise auto-detect win-arm64.
56+
if (-not $FirebirdRid -and $IsWindowsOS -and
57+
[System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') {
58+
$FirebirdRid = 'win-x64'
59+
}
60+
5461
# Synopsis: Remove the build directory.
5562
task clean {
5663
remove $BuildDir

0 commit comments

Comments
 (0)