Skip to content

Commit

Permalink
Rollup merge of rust-lang#52439 - o01eg:fix-52317, r=alexcrichton
Browse files Browse the repository at this point in the history
Revert some changes from rust-lang#51917 to fix custom libdir

Should fix rust-lang#52317 also adds `libdir` value to output.
  • Loading branch information
kennytm authored Jul 18, 2018
2 parents 21f7d2b + 10b65fa commit 47a1d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bootstrap/bin/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn main() {
};

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);
cmd.args(&args)
Expand Down Expand Up @@ -69,6 +69,7 @@ fn main() {

if verbose > 1 {
eprintln!("rustdoc command: {:?}", cmd);
eprintln!("libdir: {:?}", libdir);
}

std::process::exit(match cmd.status() {
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ impl<'a> Builder<'a> {
cargo.env("RUSTC_ERROR_FORMAT", error_format);
}
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() {
Expand Down

0 comments on commit 47a1d6b

Please sign in to comment.