diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-13 16:47:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-13 16:47:51 +0200 |
| commit | 6a42f7ded8d7dd3f0de5a87e40808181a4c698f1 (patch) | |
| tree | 6aa994a60e827259f493e7d2a13aeb9ba0227b70 | |
| parent | 61a59a57c9b848b821516f9e4c082a589f0fccf4 (diff) | |
| parent | 57b54c49281df9559cae4a685c0d38d62a3ee500 (diff) | |
| download | rust-6a42f7ded8d7dd3f0de5a87e40808181a4c698f1.tar.gz rust-6a42f7ded8d7dd3f0de5a87e40808181a4c698f1.zip | |
Rollup merge of #73267 - ehuss:cargotest-this-cargo, r=Mark-Simulacrum
Use the built cargo for cargotest. cargotest was using the beta (bootstrap) cargo. This changes it so that it will use the locally built cargo. This is intended to provide a sort of smoke test to ensure Cargo is functional. This *shouldn't* have any real impact on the CI build time. The cargotest job also happens to run cargo's testsuite, so it should already be building cargo. Note: This will fail until #73266 is merged.
| -rw-r--r-- | src/bootstrap/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 163132f5634..aeabb227cf5 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -154,6 +154,7 @@ impl Step for Cargotest { fn run(self, builder: &Builder<'_>) { let compiler = builder.compiler(self.stage, self.host); builder.ensure(compile::Rustc { compiler, target: compiler.host }); + let cargo = builder.ensure(tool::Cargo { compiler, target: compiler.host }); // Note that this is a short, cryptic, and not scoped directory name. This // is currently to minimize the length of path on Windows where we otherwise @@ -165,7 +166,7 @@ impl Step for Cargotest { let mut cmd = builder.tool_cmd(Tool::CargoTest); try_run( builder, - cmd.arg(&builder.initial_cargo) + cmd.arg(&cargo) .arg(&out_dir) .env("RUSTC", builder.rustc(compiler)) .env("RUSTDOC", builder.rustdoc(compiler)), |
