diff options
| author | Tim Neumann <mail@timnn.me> | 2016-07-13 15:40:42 +0200 |
|---|---|---|
| committer | Tim Neumann <mail@timnn.me> | 2016-07-13 16:12:10 +0200 |
| commit | 3c0c663b0e0b66b61471aac34894a3fb78aa10fa (patch) | |
| tree | 53b14d3a083cec657a1fcd1c2d960eb846af3ae7 /src/bootstrap | |
| parent | a2718217dca7bfcbb563337d53c3c1adea3321cc (diff) | |
| download | rust-3c0c663b0e0b66b61471aac34894a3fb78aa10fa.tar.gz rust-3c0c663b0e0b66b61471aac34894a3fb78aa10fa.zip | |
build compiler docs if requested in config
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/step.rs | 16 |
1 files 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, |
