-
Notifications
You must be signed in to change notification settings - Fork 18
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
Switch to LLD linker on Windows by default #15
Comments
Another important aspect of using LLD not just on Windows is that it moves the ecosystem one step closer to doing cross-compilation from other platforms to Windows, while still preserving the aspects people want from native Windows compilation, namely, PDB debugging in eg. Visual Studio. |
We have switched to LLD by default now for our main repo as the benefits are so compelling. We enable it with This does require that Windows developers also install LLVM to get LLD which is not great but is simple through |
We've been happily ussing LLD as our only linker on Windows now for over a year without any real problems, and still would like to see it become supported in Rust without having to have full LLVM manually installed. And ideally, eventually, be the default linker on Windows. Found another tracking issue about this specifically in Rust rust-lang/rust#71520 |
As this is easy enough to enable in our own workspaces and there is a Rust tracking issue for it, closing this issue on our end. |
I'm on Windows 10 x64 with: If I open a Rust project and change a simple char in code (eg: a variable value from 1 to 2) it re-builds the project (using watchexec) in 12 seconds. I installed
After a So no change with or without LLD. Can you confirm or am I wrong? How to get faster incremental (development) builds? |
For our project we find using LLD instead 2x faster for full builds, and 5x faster for incremental builds, compared to the default MSVC linker. This is huge and essential for us, so we enable it manually in
.cargo/config
:It would be nice if this was the default instead on Windows, esp. if it also made it possible to not have to install the Visual Studio Build Tools?
When using LLD Windows we do get this warning, but haven't been an issue for us:
Related umbrella issue in rust-gamedev WG: rust-gamedev/wg#50
Tracking issue:
rust
: Linking with LLD #39915rust
: Use lld by default on x64 msvc windows #71520The text was updated successfully, but these errors were encountered: