Skip to content

Commit 3c0c663

Browse files
committed
build compiler docs if requested in config
1 parent a271821 commit 3c0c663

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/bootstrap/step.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,18 @@ impl<'a> Step<'a> {
380380
vec![self.doc_test(stage)]
381381
}
382382
Source::Doc { stage } => {
383-
vec![self.doc_book(stage), self.doc_nomicon(stage),
384-
self.doc_style(stage), self.doc_standalone(stage),
385-
self.doc_std(stage),
386-
self.doc_error_index(stage)]
383+
let mut deps = vec![
384+
self.doc_book(stage), self.doc_nomicon(stage),
385+
self.doc_style(stage), self.doc_standalone(stage),
386+
self.doc_std(stage),
387+
self.doc_error_index(stage),
388+
];
389+
390+
if build.config.compiler_docs {
391+
deps.push(self.doc_rustc(stage));
392+
}
393+
394+
deps
387395
}
388396
Source::Check { stage, compiler } => {
389397
// Check is just a pseudo step which means check all targets,

0 commit comments

Comments
 (0)