@@ -95,7 +95,7 @@ fn main() {
95
95
let rustc = env:: var_os ( rustc) . unwrap_or_else ( || panic ! ( "{:?} was not set" , rustc) ) ;
96
96
let libdir = env:: var_os ( libdir) . unwrap_or_else ( || panic ! ( "{:?} was not set" , libdir) ) ;
97
97
let mut dylib_path = bootstrap:: util:: dylib_path ( ) ;
98
- dylib_path. insert ( 0 , PathBuf :: from ( libdir) ) ;
98
+ dylib_path. insert ( 0 , PathBuf :: from ( & libdir) ) ;
99
99
100
100
let mut cmd = Command :: new ( rustc) ;
101
101
cmd. args ( & args)
@@ -107,7 +107,7 @@ fn main() {
107
107
if let Some ( target) = target {
108
108
// The stage0 compiler has a special sysroot distinct from what we
109
109
// actually downloaded, so we just always pass the `--sysroot` option.
110
- cmd. arg ( "--sysroot" ) . arg ( sysroot) ;
110
+ cmd. arg ( "--sysroot" ) . arg ( & sysroot) ;
111
111
112
112
// When we build Rust dylibs they're all intended for intermediate
113
113
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
@@ -280,6 +280,8 @@ fn main() {
280
280
281
281
if verbose > 1 {
282
282
eprintln ! ( "rustc command: {:?}" , cmd) ;
283
+ eprintln ! ( "sysroot: {:?}" , sysroot) ;
284
+ eprintln ! ( "libdir: {:?}" , libdir) ;
283
285
}
284
286
285
287
// Actually run the compiler!
0 commit comments