@@ -95,7 +95,7 @@ fn main() {
9595 let rustc = env:: var_os ( rustc) . unwrap_or_else ( || panic ! ( "{:?} was not set" , rustc) ) ;
9696 let libdir = env:: var_os ( libdir) . unwrap_or_else ( || panic ! ( "{:?} was not set" , libdir) ) ;
9797 let mut dylib_path = bootstrap:: util:: dylib_path ( ) ;
98- dylib_path. insert ( 0 , PathBuf :: from ( libdir) ) ;
98+ dylib_path. insert ( 0 , PathBuf :: from ( & libdir) ) ;
9999
100100 let mut cmd = Command :: new ( rustc) ;
101101 cmd. args ( & args)
@@ -107,7 +107,7 @@ fn main() {
107107 if let Some ( target) = target {
108108 // The stage0 compiler has a special sysroot distinct from what we
109109 // actually downloaded, so we just always pass the `--sysroot` option.
110- cmd. arg ( "--sysroot" ) . arg ( sysroot) ;
110+ cmd. arg ( "--sysroot" ) . arg ( & sysroot) ;
111111
112112 // When we build Rust dylibs they're all intended for intermediate
113113 // usage, so make sure we pass the -Cprefer-dynamic flag instead of
@@ -280,6 +280,8 @@ fn main() {
280280
281281 if verbose > 1 {
282282 eprintln ! ( "rustc command: {:?}" , cmd) ;
283+ eprintln ! ( "sysroot: {:?}" , sysroot) ;
284+ eprintln ! ( "libdir: {:?}" , libdir) ;
283285 }
284286
285287 // Actually run the compiler!
0 commit comments