WolframResearch / wstp-rs

Rust bindings to the Wolfram Symbolic Transport Protocol (WSTP)
Apache License 2.0
21 stars 3 forks source link

featfix: Support building on Apple Silicon #34

Closed ConnorGray closed 2 years ago

ConnorGray commented 2 years ago

Due to Cargo #8875, it is not currently possible to link to so-called "fat" libraries. However, in WL ~v12.3 and later, WSTP is distributed as a fat binary containing native code for for both x86_64 and arm64 targets.

To work around this incompatibility, the macOS lipo command is used to generate a "thin" library, which cargo is able to successfully link against.