]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Fix typo in miri sysroot
[rust.git] / src / bootstrap / tool.rs
index d395220694705e7c6c6c586df1bbdc98c88936ac..ba329ea6c759286e37140469dded952b5dcf2850 100644 (file)
@@ -522,7 +522,7 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
         builder.ensure(compile::Rustc::new(build_compiler, 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.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"
             );