Skip to content

Commit 25216f8

Browse files
committed
bootstrap: don't build redirect pages during dry-run/test
1 parent e2c96cc commit 25216f8

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/doc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ impl Step for TheBook {
274274

275275
// build the redirect pages
276276
let _guard = builder.msg(Kind::Doc, "book redirect pages", None, build_compiler, target);
277+
if builder.config.dry_run() {
278+
return;
279+
}
280+
277281
for file in t!(fs::read_dir(redirect_path)) {
278282
let file = t!(file);
279283
let path = file.path();

0 commit comments

Comments
 (0)