Skip to content

Commit

Permalink
bootstrap: Print more debug info when find_initial_libdir fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Sep 10, 2024
1 parent 304b7f8 commit a21f395
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,14 @@ impl Build {
};
let Some(initial_libdir) = find_initial_libdir() else {
panic!(
"couldn't determine `initial_libdir` \
from target dir {initial_target_dir:?} \
and sysroot {initial_sysroot:?}"
)
"couldn't determine `initial_libdir`:
- config.initial_rustc: {rustc:?}
- initial_target_libdir_str: {initial_target_libdir_str:?}
- initial_target_dir: {initial_target_dir:?}
- initial_sysroot: {initial_sysroot:?}
",
rustc = config.initial_rustc,
);
};

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

0 comments on commit a21f395

Please sign in to comment.