Skip to content

Commit

Permalink
Print which stage is being checked (now that it may not be stage0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 authored and Mark-Simulacrum committed Jan 16, 2021
1 parent 8b702e0 commit c17ed34
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ impl Step for Std {
);
std_cargo(builder, target, compiler.stage, &mut cargo);

builder.info(&format!("Checking std artifacts ({} -> {})", &compiler.host, target));
builder.info(&format!(
"Checking stage{} std artifacts ({} -> {})",
builder.top_stage, &compiler.host, target
));
run_cargo(
builder,
cargo,
Expand Down Expand Up @@ -128,8 +131,8 @@ impl Step for Std {
}

builder.info(&format!(
"Checking std test/bench/example targets ({} -> {})",
&compiler.host, target
"Checking stage{} std test/bench/example targets ({} -> {})",
builder.top_stage, &compiler.host, target
));
run_cargo(
builder,
Expand Down Expand Up @@ -201,7 +204,10 @@ impl Step for Rustc {
cargo.arg("-p").arg(krate.name);
}

builder.info(&format!("Checking compiler artifacts ({} -> {})", &compiler.host, target));
builder.info(&format!(
"Checking stage{} compiler artifacts ({} -> {})",
builder.top_stage, &compiler.host, target
));
run_cargo(
builder,
cargo,
Expand Down Expand Up @@ -258,8 +264,8 @@ impl Step for CodegenBackend {
rustc_cargo_env(builder, &mut cargo, target);

builder.info(&format!(
"Checking {} artifacts ({} -> {})",
backend, &compiler.host.triple, target.triple
"Checking stage{} {} artifacts ({} -> {})",
builder.top_stage, backend, &compiler.host.triple, target.triple
));

run_cargo(
Expand Down Expand Up @@ -315,7 +321,8 @@ macro_rules! tool_check_step {
}

builder.info(&format!(
"Checking {} artifacts ({} -> {})",
"Checking stage{} {} artifacts ({} -> {})",
builder.top_stage,
stringify!($name).to_lowercase(),
&compiler.host.triple,
target.triple
Expand Down

0 comments on commit c17ed34

Please sign in to comment.