about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-04-19 00:45:18 +0100
committervarkor <github@varkor.com>2018-04-19 19:20:55 +0100
commit261da7108df3c49431282f8e7d2fcb736286dc17 (patch)
tree37b8f26d9488c5e5a761d8cc81e1064e243c2e65 /src/bootstrap
parentbaf940d58087dfe7bba3c675215c34c774b778ae (diff)
downloadrust-261da7108df3c49431282f8e7d2fcb736286dc17.tar.gz
rust-261da7108df3c49431282f8e7d2fcb736286dc17.zip
Ensure CleanTools is run for check rustdoc
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs3
-rw-r--r--src/bootstrap/check.rs8
2 files changed, 9 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index cc501d6f9ba..b9c82127342 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -310,7 +310,8 @@ impl<'a> Builder<'a> {
                 tool::Compiletest, tool::RemoteTestServer, tool::RemoteTestClient,
                 tool::RustInstaller, tool::Cargo, tool::Rls, tool::Rustdoc, tool::Clippy,
                 native::Llvm, tool::Rustfmt, tool::Miri, native::Lld),
-            Kind::Check => describe!(check::Std, check::Test, check::Rustc, check::CodegenBackend, check::Rustdoc),
+            Kind::Check => describe!(check::Std, check::Test, check::Rustc, check::CodegenBackend,
+                check::Rustdoc),
             Kind::Test => describe!(test::Tidy, test::Bootstrap, test::Ui, test::RunPass,
                 test::CompileFail, test::ParseFail, test::RunFail, test::RunPassValgrind,
                 test::MirOpt, test::Codegen, test::CodegenUnits, test::Incremental, test::Debuginfo,
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 4c84be4ed2e..64354ae29aa 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -12,7 +12,7 @@
 
 use compile::{run_cargo, std_cargo, test_cargo, rustc_cargo, rustc_cargo_env, add_to_sysroot};
 use builder::{RunConfig, Builder, ShouldRun, Step};
-use tool::prepare_tool_cargo;
+use tool::{self, prepare_tool_cargo};
 use {Compiler, Mode};
 use cache::{INTERNER, Interned};
 use std::path::PathBuf;
@@ -232,6 +232,12 @@ impl Step for Rustdoc {
 
         let libdir = builder.sysroot_libdir(compiler, target);
         add_to_sysroot(&builder, &libdir, &rustdoc_stamp(builder, compiler, target));
+
+        builder.ensure(tool::CleanTools {
+            compiler,
+            target,
+            mode: Mode::Tool,
+        });
     }
 }