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 dad58f1 commit 72e5ff2Copy full SHA for 72e5ff2
src/bootstrap/config.rs
@@ -1498,6 +1498,16 @@ impl Config {
1498
}
1499
set(&mut config.lld_mode, rust.lld_mode);
1500
set(&mut config.lld_enabled, rust.lld);
1501
+
1502
+ if matches!(config.lld_mode, LldMode::SelfContained)
1503
+ && !config.lld_enabled
1504
+ && flags.stage.unwrap_or(0) > 0
1505
+ {
1506
+ panic!(
1507
+ "Self-contained LLD was requested with `rust.use-lld`, but it is not be available (`rust.lld` is false)."
1508
+ );
1509
+ }
1510
1511
set(&mut config.llvm_tools_enabled, rust.llvm_tools);
1512
config.rustc_parallel = rust.parallel_compiler.unwrap_or(false);
1513
config.rustc_default_linker = rust.default_linker;
0 commit comments