Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,10 @@ impl Step for UnstableBookGen {
cmd.arg(rustc_path);
cmd.arg(out);

// Running rustc requires the library path if rust.rpath = false
// or any other libraries are in a custom location.
builder.add_rustc_lib_path(self.build_compiler, &mut cmd);

cmd.run(builder);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/tools/unstable-book-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ fn collect_compiler_flags(rustc_path: impl AsRef<Path>) -> Features {
rustc.env("RUSTC_BOOTSTRAP", "1");
rustc.arg("-Zhelp");
let output = t!(rustc.output());
assert!(output.status.success(), "`rustc -Zhelp` failed: {output:?}");
let help_str = t!(String::from_utf8(output.stdout));
let parts = help_str.split("\n -Z").collect::<Vec<_>>();
assert!(!parts[1..].is_empty(), "no -Z options were found");
Expand Down
Loading