-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with mold linker #337
Comments
I think I.e., if something like this appears, then invoke [target.x86_64-unknown-linux-gnu]
linker = "clang" Does that sound reasonable? |
That sounds like it would work for my use case at least, and a good start. It may not be foolproof - there may for example be other locations where cargo might be looking for Thanks for the quick response. |
@brson I just published a new version that I think should address the problem. Could I impose upon you to test the new version before we close this issue? |
@smoelius yes, the new version works for me. Here is what I ran
Thanks! |
Thank you! |
I recently tried to
cargo install
a crate (cargo-contract
) that relies ondylint-link
and it failed due to interactions with the recommended configuration for using the mold linker.Mold is configured by putting this in
~/.cargo/config.toml
:This is a global configuration saying to use
clang
as the linker, and clang understands the-fuse-ld
argument.dylint-link
though invokescc
, which on my system isgcc
and I see the following error:It's not immediately obvious to me how to change
dylint-link
to handle this situation.The text was updated successfully, but these errors were encountered: