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:
parent
10ffc228a8
commit
feb8f3cc5d
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue