about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-01-23 20:29:42 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2020-01-23 20:29:42 -0500
commit1cbb5d849071970f7a4d19ce8f75becaac4ee0c2 (patch)
tree1d90b7c0443753b464bb8a52db98d823dca4a29f
parente0bbe7915e2b663ac84244918d6d06e0747ed33e (diff)
downloadrust-1cbb5d849071970f7a4d19ce8f75becaac4ee0c2.tar.gz
rust-1cbb5d849071970f7a4d19ce8f75becaac4ee0c2.zip
Clear out std, not std tools
This was a typo that slipped in, and meant that we were still not properly
clearing out std.
-rw-r--r--src/bootstrap/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index 00c8e72a8f6..d9c894aa9c6 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -874,7 +874,7 @@ impl<'a> Builder<'a> {
         //
         // 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));
         }