use plain cargo to install xargo

This commit is contained in:
Ralf Jung 2019-10-25 09:22:17 +02:00
parent f809f9e08f
commit 327ae38a0b
1 changed files with 1 additions and 11 deletions

View File

@ -386,17 +386,7 @@ impl Step for Miri {
extra_features: Vec::new(),
});
if let Some(miri) = miri {
// # Install xargo.
let mut cargo = tool::prepare_tool_cargo(
builder,
compiler,
Mode::ToolRustc,
host,
"install",
"src/tools/miri",
SourceType::Submodule,
&[],
);
let mut cargo = builder.cargo(compiler, Mode::ToolRustc, host, "install");
cargo.arg("xargo");
// Configure `cargo install` path. cargo adds a `bin/`.
cargo.env("CARGO_INSTALL_ROOT", &builder.out);