We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe80a6 commit c33c16bCopy full SHA for c33c16b
src/bootstrap/src/core/config/config.rs
@@ -1509,6 +1509,16 @@ impl Config {
1509
}
1510
set(&mut config.lld_mode, rust.lld_mode);
1511
set(&mut config.lld_enabled, rust.lld);
1512
+
1513
+ if matches!(config.lld_mode, LldMode::SelfContained)
1514
+ && !config.lld_enabled
1515
+ && flags.stage.unwrap_or(0) > 0
1516
+ {
1517
+ panic!(
1518
+ "Trying to use self-contained lld as a linker, but LLD is not being added to the sysroot. Enable it with rust.lld = true."
1519
+ );
1520
+ }
1521
1522
set(&mut config.llvm_tools_enabled, rust.llvm_tools);
1523
config.rustc_parallel = rust
1524
.parallel_compiler
0 commit comments