We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea769db commit 4750e9dCopy full SHA for 4750e9d
src/bootstrap/src/core/config/config.rs
@@ -1519,6 +1519,16 @@ impl Config {
1519
}
1520
set(&mut config.lld_mode, rust.lld_mode);
1521
set(&mut config.lld_enabled, rust.lld);
1522
+
1523
+ if matches!(config.lld_mode, LldMode::SelfContained)
1524
+ && !config.lld_enabled
1525
+ && flags.stage.unwrap_or(0) > 0
1526
+ {
1527
+ panic!(
1528
+ "Trying to use self-contained lld as a linker, but LLD is not being added to the sysroot. Enable it with rust.lld = true."
1529
+ );
1530
+ }
1531
1532
set(&mut config.llvm_tools_enabled, rust.llvm_tools);
1533
config.rustc_parallel = rust
1534
.parallel_compiler
0 commit comments