diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 8b8b38b15098f170b5d43f820c68567e4035d21a..1850d60f139c993e249c74647dcad48dd27e5894 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -415,6 +415,10 @@ fn run(self, builder: &Builder<'_>) { cargo.env("RUSTC_DEBUG_ASSERTIONS", "false"); // Debug things. cargo.env("RUST_BACKTRACE", "1"); + // Configure `cargo install` path, and let cargo-miri know that that's where + // xargo ends up. + cargo.env("CARGO_INSTALL_ROOT", &builder.out); // cargo adds a `bin/` + cargo.env("XARGO", builder.out.join("bin").join("xargo")); if !try_run(builder, &mut cargo) { return;