Skip to content

Commit 374d262

Browse files
committed
Auto merge of #32718 - timonvo:bootstrap-skip-docs, r=alexcrichton
rustbuild: Skip generating docs if the config disables them. r? @alexcrichton
2 parents 0cb2ee2 + 2805e83 commit 374d262

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bootstrap/build/step.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ fn top_level(build: &Build) -> Vec<Step> {
150150
src: Source::Llvm { _dummy: () },
151151
target: &build.config.build,
152152
};
153-
targets.push(t.doc(stage));
153+
if build.config.docs {
154+
targets.push(t.doc(stage));
155+
}
154156
for host in build.config.host.iter() {
155157
if !build.flags.host.contains(host) {
156158
continue
@@ -356,7 +358,9 @@ impl<'a> Step<'a> {
356358
let compiler = self.compiler(stage);
357359
for target in build.config.target.iter() {
358360
let target = self.target(target);
359-
base.push(target.dist_docs(stage));
361+
if build.config.docs {
362+
base.push(target.dist_docs(stage));
363+
}
360364
base.push(target.dist_std(compiler));
361365
}
362366
}

0 commit comments

Comments
 (0)