File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -80,5 +80,14 @@ resource-constrained environments.
80
80
81
81
rustc will use ` rust-lld ` on ` x86_64-unknown-linux-gnu ` nightlies, for much improved linking times.
82
82
Let us know if you encounter problems, by [ opening an
83
- issue] ( https://github.com/rust-lang/rust/issues/new/choose ) on github. If that happens, you can
84
- revert to the default linker with the ` -Z linker-features=-lld ` flag.
83
+ issue] ( https://github.com/rust-lang/rust/issues/new/choose ) on github.
84
+
85
+ If that happens, you can revert to the default linker with the ` -Z linker-features=-lld ` flag.
86
+ Either by adding it to the usual ` RUSTFLAGS ` environment variable, or to a project's
87
+ [ ` .cargo/config.toml ` ] ( https://doc.rust-lang.org/cargo/reference/config.html ) configuration file,
88
+ like so:
89
+
90
+ ``` toml
91
+ [target .x86_64-unknown-linux-gnu ]
92
+ rustflags = [" -Zlinker-features=-lld" ]
93
+ ```
You can’t perform that action at this time.
0 commit comments