Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the slowless you're seeing is caused by the linker, which can very well be the case, consider using LLD as you can see significant speed improvements to the linking step.

https://github.com/rust-lang/rust/issues/39915#issuecomment-...

https://doc.rust-lang.org/1.22.0/unstable-book/compiler-flag...

If installed, you can run

    RUSTFLAGS="-Clink-arg=-fuse-ld=lld" cargo build --release


Looked into this :) unfortunately I run Mac so there's nothing I can do here. Tempted to dual boot Ubuntu, though.


It's a shame. I'm on the same boat and not being able to use lld adds a literal minute to my builds :-/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: