diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-05-03 13:29:37 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-05-25 17:32:31 -0500 |
| commit | 53bf24c82ba2102c84949ed2c2ed94fa972b4c2a (patch) | |
| tree | f3053b7a8f1d7100f6ec458170e6a379ec52d3d6 /src/bootstrap/test.rs | |
| parent | 61dd278ade42a2d6d88f1c7b2bf2ee3ffab3b132 (diff) | |
Move download-rustc from bootstrap.py to rustbuild
- Remove download-rustc handling from bootstrap.py - Allow a custom `pattern` in `builder.unpack()` - Only download rustc once another part of bootstrap depends on it. This is somewhat necessary since the download functions rely on having a full `Builder`, which isn't available until after config parsing finishes.
Diffstat (limited to 'src/bootstrap/test.rs')
| -rw-r--r-- | src/bootstrap/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index bc851568f89..99e9e8794e3 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -2058,7 +2058,7 @@ impl Step for CrateRustdoc { let test_kind = self.test_kind; let target = self.host; - let compiler = if builder.config.download_rustc { + let compiler = if builder.download_rustc() { builder.compiler(builder.top_stage, target) } else { // Use the previous stage compiler to reuse the artifacts that are @@ -2127,7 +2127,7 @@ impl Step for CrateRustdoc { // with. // // Note that this set the host libdir for `download_rustc`, which uses a normal rust distribution. - let libdir = if builder.config.download_rustc { + let libdir = if builder.download_rustc() { builder.rustc_libdir(compiler) } else { builder.sysroot_libdir(compiler, target).to_path_buf() |
