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.
This commit is contained in:
Zalathar
2024-05-30 17:15:36 +10:00
parent 10ffc228a8
commit feb8f3cc5d
+1 -4
View File
@@ -1782,10 +1782,7 @@ fn run(self, builder: &Builder<'_>) {
}
if matches!(mode, "coverage-map" | "coverage-run") {
let coverage_dump = builder.ensure(tool::CoverageDump {
compiler: compiler.with_stage(0),
target: compiler.host,
});
let coverage_dump = builder.tool_exe(Tool::CoverageDump);
cmd.arg("--coverage-dump-path").arg(coverage_dump);
}