Skip to content

Commit 10b65fa

Browse files
committed
Revert some changes from rust-lang#51917 to fix rust-lang#52317.
1 parent 3d5753f commit 10b65fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bootstrap/bin/rustdoc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn main() {
3535
};
3636

3737
let mut dylib_path = bootstrap::util::dylib_path();
38-
dylib_path.insert(0, PathBuf::from(libdir));
38+
dylib_path.insert(0, PathBuf::from(libdir.clone()));
3939

4040
let mut cmd = Command::new(rustdoc);
4141
cmd.args(&args)
@@ -69,6 +69,7 @@ fn main() {
6969

7070
if verbose > 1 {
7171
eprintln!("rustdoc command: {:?}", cmd);
72+
eprintln!("libdir: {:?}", libdir);
7273
}
7374

7475
std::process::exit(match cmd.status() {

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ impl<'a> Builder<'a> {
825825
cargo.env("RUSTC_ERROR_FORMAT", error_format);
826826
}
827827
if cmd != "build" && cmd != "check" && want_rustdoc {
828-
cargo.env("RUSTDOC_LIBDIR", &libdir);
828+
cargo.env("RUSTDOC_LIBDIR", self.sysroot_libdir(compiler, self.config.build));
829829
}
830830

831831
if mode.is_tool() {

0 commit comments

Comments
 (0)