Skip to content

Commit 8f69cd8

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

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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();

src/bootstrap/src/core/builder/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,8 +1537,8 @@ mod snapshot {
15371537
[doc] book/first-edition (book) <target1>
15381538
[doc] book/second-edition (book) <target1>
15391539
[doc] book/2018-edition (book) <target1>
1540-
[build] rustdoc 1 <host>
15411540
[build] rustc 1 <host> -> std 1 <host>
1541+
[build] rustdoc 1 <host>
15421542
[doc] rustc 1 <host> -> standalone 2 <target1>
15431543
[doc] rustc 1 <host> -> std 1 <target1> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,rustc-std-workspace-core,std,std_detect,sysroot,test,unwind]
15441544
[build] llvm <target1>

0 commit comments

Comments
 (0)