Skip to content

Conversation

@jedbrown
Copy link
Contributor

@jedbrown jedbrown commented Jun 6, 2025

The updated libffi is needed to fix an issue with MacOS 15, and the fix has a side-effect of increasing MSRV to 1.78. See
#209

@jedbrown jedbrown force-pushed the jed/libffi-4 branch 4 times, most recently from 02335e7 to 5964f7d Compare June 10, 2025 04:42
The updated libffi is needed to fix an issue with MacOS 15, and the fix
has a side-effect of increasing MSRV to 1.78. See
#209

We will stick with bindgen-1.70.1 because bindgen-1.71.1 does not
correctlly identify when to avoid using unsafe extern "C" { ... }, which
was first added in rust-1.82.

rust-lang/rust-bindgen#3015
https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-extern.html
@jedbrown jedbrown force-pushed the jed/libffi-4 branch 6 times, most recently from 996e757 to 7079246 Compare June 10, 2025 05:29
jedbrown added 2 commits June 9, 2025 23:31
This appears to work out of the box on ordinary systems, but for
homebrew-installed llvm, it requires setting DYLD_LIBRARY_PATH, such as:

export DYLD_LIBRARY_PATH=$(/opt/homebrew/opt/llvm@19/bin/llvm-config --libdir)
This makes the build work on MacOS without setting DYLD_LIBRARY_PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants