Skip to content

Commit c8edb36

Browse files
Print out the sysroot and libdir on verbose builds.
1 parent 1c8f3b0 commit c8edb36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)