File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( ) {
Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments