Skip to content

Commit 42c14ab

Browse files
committed
only run --all-targets in stage0
1 parent 116819f commit 42c14ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/check.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ impl Step for Std {
140140
cargo_subcommand(builder.kind),
141141
);
142142

143-
cargo.arg("--all-targets");
143+
if compiler.stage == 0 {
144+
cargo.arg("--all-targets");
145+
}
146+
144147
std_cargo(builder, target, compiler.stage, &mut cargo);
145148

146149
// Explicitly pass -p for all dependencies krates -- this will force cargo

0 commit comments

Comments
 (0)