]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/builder.rs
Rollup merge of #68592 - pdbrito:master, r=jonas-schievink
[rust.git] / src / bootstrap / builder.rs
index 00c8e72a8f6851c82c68a4f0cd2925d8fd3ed584..d9c894aa9c6b1d6a32023c99201e01528246b3cd 100644 (file)
@@ -874,7 +874,7 @@ pub fn cargo(
         //
         // Only clear out the directory if we're compiling std; otherwise, we
         // should let Cargo take care of things for us (via depdep info)
-        if !self.config.dry_run && mode == Mode::ToolStd && cmd == "build" {
+        if !self.config.dry_run && mode == Mode::Std && cmd == "build" {
             self.clear_if_dirty(&out_dir, &self.rustc(compiler));
         }