about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authormatt rice <ratmice@gmail.com>2017-10-29 09:10:07 -0700
committermatt rice <ratmice@gmail.com>2017-11-03 10:52:36 -0700
commitaa9d0aae99d84df9439f700c56ec3a84fdb1b10c (patch)
treebdadb8a6a7e6c525e138df8bcc4bd87c7ac9bb8e /src/bootstrap
parent0cd03bf5f33751497444b03e51d1b4598dc46a7d (diff)
downloadrust-aa9d0aae99d84df9439f700c56ec3a84fdb1b10c.tar.gz
rust-aa9d0aae99d84df9439f700c56ec3a84fdb1b10c.zip
issue #45357 set clippy build condition to extended.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/tool.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs
index a8dfba55427..7175fed5410 100644
--- a/src/bootstrap/tool.rs
+++ b/src/bootstrap/tool.rs
@@ -415,10 +415,8 @@ impl Step for Clippy {
     const ONLY_HOSTS: bool = true;
 
     fn should_run(run: ShouldRun) -> ShouldRun {
-        match run.builder.top_stage {
-            1 => run.never(),
-            _ => run.path("src/tools/clippy"),
-        }
+        let builder = run.builder;
+        run.path("src/tools/clippy").default_condition(builder.build.config.extended)
     }
 
     fn make_run(run: RunConfig) {