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

use gold instead of bfd on Linux if it's available #14560

Closed
thestinger opened this issue May 31, 2014 · 3 comments
Closed

use gold instead of bfd on Linux if it's available #14560

thestinger opened this issue May 31, 2014 · 3 comments
Labels
I-compiletime Issue: Problems and improvements with respect to compile times. O-linux Operating system: Linux

Comments

@thestinger
Copy link
Contributor

This is what clang does on Linux, by detecting the existence of /usr/bin/ld.gold and then using it. This can be done with gcc by passing -fuse-ld=gold. It's a much faster linker and doesn't consume as much memory, so it will reduce the compiler's peak memory consumption.

@thestinger thestinger changed the title use gold instead of bfd if it's available use gold instead of bfd on Linux if it's available May 31, 2014
@thestinger thestinger self-assigned this Aug 19, 2014
@smaudet
Copy link

smaudet commented Jan 8, 2015

Mind if I take a look at this one?

@thestinger thestinger removed their assignment Jan 28, 2015
@brson
Copy link
Contributor

brson commented Aug 7, 2015

FWIW I did an experiment today and servo in debug mode builds in 54 seconds with ld and 14 seconds with gold. I'm going to see if I can get a patch together for this.

@bstrie
Copy link
Contributor

bstrie commented Jul 14, 2016

Closing in favor of #30783

@bstrie bstrie closed this as completed Jul 14, 2016
bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
fix: Fix view crate graph being broken due to webworker usage

Fixes rust-lang/rust-analyzer#14457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-compiletime Issue: Problems and improvements with respect to compile times. O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

4 participants