-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove no longer necessary MacOS RUSTFLAGS hack #9
Conversation
The "hack" is still necessary, AFAICT, nothing changed in regard to this. The only thing that changed is that people are working on improving the syntax. The comments are probably outdated, though. |
I noticed this when i bumped rust to 1.49, linking started failing on our tests at |
Hi, guys. Since rust-lang/rust#36574 had been merged, the hack was also outdated. We still need to specify RUSTFLAGS for different targets, but it can be done via # .cargo/config.toml
[target.'cfg(target_os = "macos")']
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
] So, this PR can be merged IMO. |
According to rusterlium/rustler#192 and the Apple reference, the two-level namespace is preferred, and:
So with two-level namespace args in my example lib:
Meanwhile, the preferred for rust/cargo is to put RUSTFLAGS in the cargo config file. |
i'll take care of the merge conflict |
The two PRs mentioned have since been merged, this can now be dropped.
8561886
to
aa42a68
Compare
Great! And should bump a new version to fix rusterlium/rebar3_cargo#6 which may should be update to using the new fix with a cargo config file? |
However, this requires manaully patching the `erlang-cargo` dependency of the rebar3_cargo plugin to include this change: rusterlium/erlang-cargo#9
@filmor Could you bump a new release? And have a review at rusterlium/rebar3_cargo#8 if you have time. 🙂 |
The two PRs mentioned in the comments have since been merged, this can now be dropped.