Skip to content

Commit 75c820e

Browse files
committed
bootstrap: Print more debug info when find_initial_libdir fails
1 parent 085744b commit 75c820e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/bootstrap/src/lib.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,14 @@ impl Build {
347347
};
348348
let Some(initial_libdir) = find_initial_libdir() else {
349349
panic!(
350-
"couldn't determine `initial_libdir` \
351-
from target dir {initial_target_dir:?} \
352-
and sysroot {initial_sysroot:?}"
353-
)
350+
"couldn't determine `initial_libdir`:
351+
- config.initial_rustc: {rustc:?}
352+
- initial_target_libdir_str: {initial_target_libdir_str:?}
353+
- initial_target_dir: {initial_target_dir:?}
354+
- initial_sysroot: {initial_sysroot:?}
355+
",
356+
rustc = config.initial_rustc,
357+
);
354358
};
355359

356360
let version = std::fs::read_to_string(src.join("src").join("version"))

0 commit comments

Comments
 (0)