Revert some changes from #51917 to fix #52317.

This commit is contained in:
O01eg
2018-07-16 19:17:14 +03:00
parent 3d5753fda1
commit 10b65fa603
2 changed files with 3 additions and 2 deletions

View File

@@ -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() {