Repository navigation
fix: keep macOS proc-macro dylibs loadable - #392
Merged
Merged
Conversation
Contributor
Author
|
Note: Nix does not currently avoid this: it pins the same Rust 1.96.1 toolchain and does not pin a macOS SDK/linker. The host Apple linker may still be used inside nix develop, so the fix benefits both Nix and non-Nix builds. |
Contributor
Author
|
@eval-exec This issue is relevant for macOS users: rust-lang/rust#157750 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS 27.0 (Apple Silicon) with Rust 1.96.1,
cargo xtask fresh-build --releasefailed while compilingstrumwith E0463 forstrum_macros.The underlying loader diagnostic was:
dlopen(.../libstrum_macros-*.dylib): mis-aligned LINKEDIT string poolCargo profile stripping was producing malformed proc-macro dylibs. Keep stripping disabled for release artifacts and optimized dev/build dependency overrides;
debug = falsestill avoids embedding debug info.Verification:
CPATH/LIBRARY_PATH+cargo xtask fresh-build --release: passedcargo test -p xtask: proc-macro compilation passed; 118/125 tests passed, with 7 pre-existing CI-contract/fixture failures unrelated to this changegit diff --check: passed