Skip to content

Commit 815dec9

Browse files
committed
Auto merge of #63869 - GuillaumeGomez:fix-build-failure, r=Mark-Simulacrum
Fix build failure in case file doesn't exist It fixes the following issue: ```bash $ ./x.py test src/tools/linkchecker ./build/x86_64-apple-darwin/doc/ --stage 1 Updating only changed submodules Submodules updated in 0.05 seconds Finished dev [unoptimized] target(s) in 0.15s thread 'main' panicked at 'source "/Users/imperio/rust/rust/build/x86_64-apple-darwin/doc/version_info.html" failed to get metadata: No such file or directory (os error 2)', src/build_helper/lib.rs:179:19 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. failed to run: /Users/imperio/rust/rust/build/bootstrap/debug/bootstrap test src/tools/linkchecker ./build/x86_64-apple-darwin/doc/ --stage 1 Build completed unsuccessfully in 0:00:01 ``` If the file doesn't exist, it makes sense anyway to just run the command in order to generate it. r? @Mark-Simulacrum
2 parents b505208 + a80ab3a commit 815dec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl Step for Standalone {
375375
up_to_date(&footer, &html) &&
376376
up_to_date(&favicon, &html) &&
377377
up_to_date(&full_toc, &html) &&
378-
up_to_date(&version_info, &html) &&
378+
(builder.config.dry_run || up_to_date(&version_info, &html)) &&
379379
(builder.config.dry_run || up_to_date(&rustdoc, &html)) {
380380
continue
381381
}

0 commit comments

Comments
 (0)