File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ fn main() {
35
35
} ;
36
36
37
37
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 ( ) ) ) ;
39
39
40
40
let mut cmd = Command :: new ( rustdoc) ;
41
41
cmd. args ( & args)
@@ -69,6 +69,7 @@ fn main() {
69
69
70
70
if verbose > 1 {
71
71
eprintln ! ( "rustdoc command: {:?}" , cmd) ;
72
+ eprintln ! ( "libdir: {:?}" , libdir) ;
72
73
}
73
74
74
75
std:: process:: exit ( match cmd. status ( ) {
Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ impl<'a> Builder<'a> {
825
825
cargo. env ( "RUSTC_ERROR_FORMAT" , error_format) ;
826
826
}
827
827
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 ) ) ;
829
829
}
830
830
831
831
if mode. is_tool ( ) {
You can’t perform that action at this time.
0 commit comments