Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c17ed34

Browse files
jyn514Mark-Simulacrum
authored andcommitted
Print which stage is being checked (now that it may not be stage0)
1 parent 8b702e0 commit c17ed34

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/bootstrap/check.rs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ impl Step for Std {
8484
);
8585
std_cargo(builder, target, compiler.stage, &mut cargo);
8686

87-
builder.info(&format!("Checking std artifacts ({} -> {})", &compiler.host, target));
87+
builder.info(&format!(
88+
"Checking stage{} std artifacts ({} -> {})",
89+
builder.top_stage, &compiler.host, target
90+
));
8891
run_cargo(
8992
builder,
9093
cargo,
@@ -128,8 +131,8 @@ impl Step for Std {
128131
}
129132

130133
builder.info(&format!(
131-
"Checking std test/bench/example targets ({} -> {})",
132-
&compiler.host, target
134+
"Checking stage{} std test/bench/example targets ({} -> {})",
135+
builder.top_stage, &compiler.host, target
133136
));
134137
run_cargo(
135138
builder,
@@ -201,7 +204,10 @@ impl Step for Rustc {
201204
cargo.arg("-p").arg(krate.name);
202205
}
203206

204-
builder.info(&format!("Checking compiler artifacts ({} -> {})", &compiler.host, target));
207+
builder.info(&format!(
208+
"Checking stage{} compiler artifacts ({} -> {})",
209+
builder.top_stage, &compiler.host, target
210+
));
205211
run_cargo(
206212
builder,
207213
cargo,
@@ -258,8 +264,8 @@ impl Step for CodegenBackend {
258264
rustc_cargo_env(builder, &mut cargo, target);
259265

260266
builder.info(&format!(
261-
"Checking {} artifacts ({} -> {})",
262-
backend, &compiler.host.triple, target.triple
267+
"Checking stage{} {} artifacts ({} -> {})",
268+
builder.top_stage, backend, &compiler.host.triple, target.triple
263269
));
264270

265271
run_cargo(
@@ -315,7 +321,8 @@ macro_rules! tool_check_step {
315321
}
316322

317323
builder.info(&format!(
318-
"Checking {} artifacts ({} -> {})",
324+
"Checking stage{} {} artifacts ({} -> {})",
325+
builder.top_stage,
319326
stringify!($name).to_lowercase(),
320327
&compiler.host.triple,
321328
target.triple

0 commit comments

Comments
 (0)