Skip to content

Commit b0b4f4a

Browse files
committed
fail on {dist, install} subcommand if download-rustc is enabled
1 parent a3bb170 commit b0b4f4a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootstrap/src/core/builder.rs

+9
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ impl StepDescription {
414414
.map(|desc| (desc.should_run)(ShouldRun::new(builder, desc.kind)))
415415
.collect::<Vec<_>>();
416416

417+
if builder.download_rustc() && (builder.kind == Kind::Dist || builder.kind == Kind::Install)
418+
{
419+
eprintln!(
420+
"ERROR: '{}' subcommand is incompatible with `rust.download-rustc`.",
421+
builder.kind.as_str()
422+
);
423+
crate::exit!(1);
424+
}
425+
417426
// sanity checks on rules
418427
for (desc, should_run) in v.iter().zip(&should_runs) {
419428
assert!(

0 commit comments

Comments
 (0)