Skip to content

Commit feb8f3c

Browse files
committed
Use Builder::tool_exe to build the coverage-dump tool
This appears to be the canonical way to build a tool with the stage 0 compiler.
1 parent 10ffc22 commit feb8f3c

File tree

1 file changed

+1
-4
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-4
lines changed

src/bootstrap/src/core/build_steps/test.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1782,10 +1782,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
17821782
}
17831783

17841784
if matches!(mode, "coverage-map" | "coverage-run") {
1785-
let coverage_dump = builder.ensure(tool::CoverageDump {
1786-
compiler: compiler.with_stage(0),
1787-
target: compiler.host,
1788-
});
1785+
let coverage_dump = builder.tool_exe(Tool::CoverageDump);
17891786
cmd.arg("--coverage-dump-path").arg(coverage_dump);
17901787
}
17911788

0 commit comments

Comments
 (0)