Skip to content

Commit f009d37

Browse files
authored
Use rust-lld on windows rustdoc in config_fast_builds.toml (#13553)
# Objective - Rustdoc doesn't seem to follow cargo's `linker` setting - Improves the situation in #12207 ## Solution - Explicitly set the linker in rustdoc flags ## Testing - I tested this change on Windows and it significantly improves testing performances (can't give an exact estimate since they got stuck before this change) --- Note: I avoided changing the settings on Linux and MacOS because I can't test on those platforms. It would be nice if someone could test similar changes there and report so they can be done on all major platforms.
1 parent c994c15 commit f009d37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cargo/config_fast_builds.toml

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ rustflags = [
134134
# rustup component add llvm-tools
135135
# ```
136136
linker = "rust-lld.exe"
137+
rustdocflags = ["-Clinker=rust-lld.exe"]
137138
rustflags = [
138139
# Nightly
139140
# "-Zshare-generics=n", # This needs to be off if you use dynamic linking on Windows.

0 commit comments

Comments
 (0)