diff options
| author | Johannes Nixdorf <mixi@exherbo.org> | 2018-05-25 13:08:54 +0200 |
|---|---|---|
| committer | Johannes Nixdorf <mixi@exherbo.org> | 2018-05-31 12:03:29 +0200 |
| commit | a8be9bdd7bd58733a175a5fd33359424097fae4f (patch) | |
| tree | 9cf0b0b7b40c43066bd8097749f940931b2b83eb | |
| parent | ff8f226cab5614bcb340d75d86857ccbf33a33c3 (diff) | |
| download | rust-a8be9bdd7bd58733a175a5fd33359424097fae4f.tar.gz rust-a8be9bdd7bd58733a175a5fd33359424097fae4f.zip | |
Use builder.cargo() for cargo-vendor.
This makes it go through boostrap/bin/rustc.rs, so it will use -crt-static if needed.
| -rw-r--r-- | src/bootstrap/dist.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index e21a59390b7..82ba03ec777 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -951,13 +951,16 @@ impl Step for PlainSourceTarball { has_cargo_vendor |= line.starts_with("cargo-vendor "); } if !has_cargo_vendor { - let mut cmd = Command::new(&builder.initial_cargo); - cmd.arg("install") - .arg("--force") + let mut cmd = builder.cargo( + builder.compiler(0, builder.config.build), + Mode::Tool, + builder.config.build, + "install" + ); + cmd.arg("--force") .arg("--debug") .arg("--vers").arg(CARGO_VENDOR_VERSION) - .arg("cargo-vendor") - .env("RUSTC", &builder.initial_rustc); + .arg("cargo-vendor"); if let Some(dir) = builder.openssl_install_dir(builder.config.build) { builder.ensure(native::Openssl { target: builder.config.build, |
