From 3c0c663b0e0b66b61471aac34894a3fb78aa10fa Mon Sep 17 00:00:00 2001 From: Tim Neumann Date: Wed, 13 Jul 2016 15:40:42 +0200 Subject: [PATCH] build compiler docs if requested in config --- src/bootstrap/step.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index 4b3be04b57c..82ae70d22ca 100644 --- a/src/bootstrap/step.rs +++ b/src/bootstrap/step.rs @@ -380,10 +380,18 @@ impl<'a> Step<'a> { vec![self.doc_test(stage)] } Source::Doc { stage } => { - vec![self.doc_book(stage), self.doc_nomicon(stage), - self.doc_style(stage), self.doc_standalone(stage), - self.doc_std(stage), - self.doc_error_index(stage)] + let mut deps = vec![ + self.doc_book(stage), self.doc_nomicon(stage), + self.doc_style(stage), self.doc_standalone(stage), + self.doc_std(stage), + self.doc_error_index(stage), + ]; + + if build.config.compiler_docs { + deps.push(self.doc_rustc(stage)); + } + + deps } Source::Check { stage, compiler } => { // Check is just a pseudo step which means check all targets,