1
Fork 0

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

View file

@ -1782,10 +1782,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
} }
if matches!(mode, "coverage-map" | "coverage-run") { if matches!(mode, "coverage-map" | "coverage-run") {
let coverage_dump = builder.ensure(tool::CoverageDump { let coverage_dump = builder.tool_exe(Tool::CoverageDump);
compiler: compiler.with_stage(0),
target: compiler.host,
});
cmd.arg("--coverage-dump-path").arg(coverage_dump); cmd.arg("--coverage-dump-path").arg(coverage_dump);
} }