Skip to content

Add announcement for rust-lld on linux nightlies #1319

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

Merged
merged 8 commits into from
May 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
expand on how to revert to system linker
  • Loading branch information
lqd committed May 16, 2024
commit 3f860286be00f6c92825941f2993aeaba553f9b4
13 changes: 11 additions & 2 deletions posts/2024-05-01-enabling-rust-lld-on-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,14 @@ resource-constrained environments.

rustc will use `rust-lld` on `x86_64-unknown-linux-gnu` nightlies, for much improved linking times.
Let us know if you encounter problems, by [opening an
issue](https://github.com/rust-lang/rust/issues/new/choose) on github. If that happens, you can
revert to the default linker with the `-Z linker-features=-lld` flag.
issue](https://github.com/rust-lang/rust/issues/new/choose) on GitHub.

If that happens, you can revert to the default linker with the `-Z linker-features=-lld` flag.
Either by adding it to the usual `RUSTFLAGS` environment variable, or to a project's
[`.cargo/config.toml`](https://doc.rust-lang.org/cargo/reference/config.html) configuration file,
like so:

```toml
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Zlinker-features=-lld"]
```