Skip to content
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

[RUST] Missing info and/or update needed to readme I think #1232

Open
deanm0000 opened this issue Apr 12, 2024 · 1 comment
Open

[RUST] Missing info and/or update needed to readme I think #1232

deanm0000 opened this issue Apr 12, 2024 · 1 comment

Comments

@deanm0000
Copy link

I'm no compiler expert but I had a hard time getting mold going for compiling a rust project

I finally got it to work and these are the things that I think might help future people

  1. I, seemingly, had to install clang. Should that be in the install-build-deps.sh?
  2. In the "How to use section" under "A classic way to use mold" it says to pass -fuse-ld=mold but in the "If you are using Rust" subheading, it says link-arg=-fuse-ld=/path/to/mold but it didn't work with the full path. I ended up adding ppa:ubuntu-toolchain-r/test and updating gcc and then passed -fuse-ld=mold in my config.toml.
  3. Having the snippet to put in config.toml twice was a bit confusing. Maybe take one out but keep the note about putting it in the home directory for global setting and project one if they don't want it to be global.
@Paulo-21
Copy link
Contributor

For me the doc is clear, what can be done in my opinion is to specified from which version of gcc it recognize the option -fuse-ld.

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

No branches or pull requests

2 participants