about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-05-30 17:15:36 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-05-31 21:52:45 +1000
commitfeb8f3cc5d0728db5038de151f02bac540dc713a (patch)
tree010aaf075c894b8294799d994aa0cf8b4076effd
parent10ffc228a851489b1678d830517541bd00d4da49 (diff)
downloadrust-feb8f3cc5d0728db5038de151f02bac540dc713a.tar.gz
rust-feb8f3cc5d0728db5038de151f02bac540dc713a.zip
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.
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 76302a7900d..29b3d1669b4 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -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") {
-            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);
         }