Rollup merge of #52439 - o01eg:fix-52317, r=alexcrichton
Revert some changes from #51917 to fix custom libdir Should fix #52317 also adds `libdir` value to output.
This commit is contained in:
@@ -35,7 +35,7 @@ fn main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let mut dylib_path = bootstrap::util::dylib_path();
|
let mut dylib_path = bootstrap::util::dylib_path();
|
||||||
dylib_path.insert(0, PathBuf::from(libdir));
|
dylib_path.insert(0, PathBuf::from(libdir.clone()));
|
||||||
|
|
||||||
let mut cmd = Command::new(rustdoc);
|
let mut cmd = Command::new(rustdoc);
|
||||||
cmd.args(&args)
|
cmd.args(&args)
|
||||||
@@ -69,6 +69,7 @@ fn main() {
|
|||||||
|
|
||||||
if verbose > 1 {
|
if verbose > 1 {
|
||||||
eprintln!("rustdoc command: {:?}", cmd);
|
eprintln!("rustdoc command: {:?}", cmd);
|
||||||
|
eprintln!("libdir: {:?}", libdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::process::exit(match cmd.status() {
|
std::process::exit(match cmd.status() {
|
||||||
|
|||||||
@@ -825,7 +825,7 @@ impl<'a> Builder<'a> {
|
|||||||
cargo.env("RUSTC_ERROR_FORMAT", error_format);
|
cargo.env("RUSTC_ERROR_FORMAT", error_format);
|
||||||
}
|
}
|
||||||
if cmd != "build" && cmd != "check" && want_rustdoc {
|
if cmd != "build" && cmd != "check" && want_rustdoc {
|
||||||
cargo.env("RUSTDOC_LIBDIR", &libdir);
|
cargo.env("RUSTDOC_LIBDIR", self.sysroot_libdir(compiler, self.config.build));
|
||||||
}
|
}
|
||||||
|
|
||||||
if mode.is_tool() {
|
if mode.is_tool() {
|
||||||
|
|||||||
Reference in New Issue
Block a user