Skip to content

Commit e763ddc

Browse files
committed
Add some comments
1 parent 2124a85 commit e763ddc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config.toml.example

+2
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@
398398
# Indicates whether LLD will be used to link Rust crates during bootstrap on
399399
# supported platforms. The LLD from the bootstrap distribution will be used
400400
# and not the LLD compiled during the bootstrap.
401+
#
402+
# LLD will not be used if we're cross linking or running tests.
401403
#use-lld = false
402404

403405
# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the

src/bootstrap/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ impl Step for Compiletest {
10351035
flags.push("-Zunstable-options".to_string());
10361036
flags.push(builder.config.cmd.rustc_args().join(" "));
10371037

1038+
// Don't use LLD here since we want to test that rustc finds and uses a linker by itself.
10381039
if let Some(linker) = builder.linker(target, false) {
10391040
cmd.arg("--linker").arg(linker);
10401041
}

0 commit comments

Comments
 (0)