Skip to content

Commit 6174653

Browse files
committed
fix: apply bindgen fix for aarch64 to versions up to 1.5.1
The issue we face when building pg_graphql on aarch64 is: `Invalid or unknown abi 16 for function "_ZGVnN4vv_atan2f"` It has been fixed in bindgen 0.11.3.
1 parent ca5b7e8 commit 6174653

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nix/ext/pg_graphql/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ let
9797
lib.optionalAttrs
9898
(
9999
# Fix bindgen error on aarch64-linux for versions using pgrx with bindgen 0.68.1
100-
# This affects pgrx 0.6.1 through 0.11.3 which have issues with ARM NEON vector ABI
101-
# We apply the fix to all versions up to and including 1.5.7 (last version before 1.5.9 which uses 0.12.6)
102-
builtins.compareVersions "1.5.7" version >= 0
100+
# This affects pgrx 0.6.1 through 0.11.2 which have issues with ARM NEON vector ABI
101+
# We apply the fix to all versions up to 1.5.1 (last version before 1.5.4 which uses 0.11.2)
102+
builtins.compareVersions "1.5.4" version >= 0
103103
)
104104
{
105105
# Fix bindgen error on aarch64-linux by using an older version of clang

nix/ext/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,6 @@
413413
"hash": "sha256-W1RokXH4Vfj2FIuEzGEP5SzzWsv2Pbzfa816nXKnSoc=",
414414
"pgrx": "0.14.3",
415415
"rust": "1.87.0"
416-
}
416+
}
417417
}
418418
}

0 commit comments

Comments
 (0)