(tool_rustbook, ToolRustbook { stage: u32 }),
(tool_error_index, ToolErrorIndex { stage: u32 }),
(tool_cargotest, ToolCargoTest { stage: u32 }),
+ (tool_tidy, ToolTidy { stage: u32 }),
// Steps for long-running native builds. Ideally these wouldn't
// actually exist and would be part of build scripts, but for now
(check, Check { stage: u32, compiler: Compiler<'a> }),
(check_linkcheck, CheckLinkcheck { stage: u32 }),
(check_cargotest, CheckCargoTest { stage: u32 }),
+ (check_tidy, CheckTidy { stage: u32 }),
// Distribution targets, creating tarballs
(dist, Dist { stage: u32 }),
src: Source::Llvm { _dummy: () },
target: &build.config.build,
};
- targets.push(t.doc(stage));
+ if build.config.docs {
+ targets.push(t.doc(stage));
+ }
for host in build.config.host.iter() {
if !build.flags.host.contains(host) {
continue
Source::CheckCargoTest { stage } => {
vec![self.tool_cargotest(stage)]
}
+ Source::CheckTidy { stage } => {
+ vec![self.tool_tidy(stage)]
+ }
- Source::ToolLinkchecker { stage } => {
+ Source::ToolLinkchecker { stage } |
+ Source::ToolTidy { stage } => {
vec![self.libstd(self.compiler(stage))]
}
Source::ToolErrorIndex { stage } |
let compiler = self.compiler(stage);
for target in build.config.target.iter() {
let target = self.target(target);
- base.push(target.dist_docs(stage));
+ if build.config.docs {
+ base.push(target.dist_docs(stage));
+ }
base.push(target.dist_std(compiler));
}
}