]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Remove the source archive functionality of ArchiveWriter
[rust.git] / src / bootstrap / tool.rs
index f39cbb57b827100f416b2564480eeeaf0b843f6d..b7abf6cc78d7125b62bc42cc7cfda52ef7e77f2c 100644 (file)
@@ -516,7 +516,7 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
         builder.ensure(compile::Rustc { compiler: build_compiler, target: target_compiler.host });
         // NOTE: this implies that `download-rustc` is pretty useless when compiling with the stage0
         // compiler, since you do just as much work.
-        if !builder.config.dry_run && builder.config.download_rustc && build_compiler.stage == 0 {
+        if !builder.config.dry_run && builder.download_rustc() && build_compiler.stage == 0 {
             println!(
                 "warning: `download-rustc` does nothing when building stage1 tools; consider using `--stage 2` instead"
             );