-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support building against macOS universal binaries (#1166)
FIXES: #1087 A "universal binary" is a fat binary which contains multiple builds for different architectures. When Postgres is packaged in this format it's necessary to slice out the build for the current architecture before trying to parse it. The program terminates early if the universal binary doesn't support the current architecture. The list of supported architectures in `slice_arch32` is limited by [`object`][object-arch], which supports fewer than [Rust][rust-arch]. The universal binary test fixture was simply chosen because of it's small size relative to other binaries in Postgres. [^1]: gimli-rs/object#454 (comment) [rust-arch]: http://doc.rust-lang.org/1.68.2/std/env/consts/constant.ARCH.html [object-arch]: https://docs.rs/object/latest/object/read/macho/trait.FatArch.html#method.architecture
- Loading branch information
Showing
2 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.