From 2805e83dcb3762994b8802fa766c88ca93c5b839 Mon Sep 17 00:00:00 2001 From: Timon Van Overveldt Date: Sun, 3 Apr 2016 21:09:19 -0700 Subject: [PATCH] rustbuild: Skip generating docs if the config disables them. It looks like before these config variables weren't actually taken into account. This patch should make the build system skip over the documentation steps correctly. --- src/bootstrap/build/step.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/build/step.rs b/src/bootstrap/build/step.rs index 80fcc32e5371d..c534a2c46bd75 100644 --- a/src/bootstrap/build/step.rs +++ b/src/bootstrap/build/step.rs @@ -148,7 +148,9 @@ fn top_level(build: &Build) -> Vec { 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 @@ -350,7 +352,9 @@ impl<'a> Step<'a> { 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)); } }