1
Fork 0

bootstrap: If dir_is_empty fails, show the non-existent directory path

This should help when trying to debug issues.
This commit is contained in:
Josh Triplett 2025-01-04 10:47:24 +02:00
parent 7349f6b503
commit 2cefd30eff

View file

@ -438,7 +438,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
}
pub fn dir_is_empty(dir: &Path) -> bool {
t!(std::fs::read_dir(dir)).next().is_none()
t!(std::fs::read_dir(dir), dir).next().is_none()
}
/// Extract the beta revision from the full version string.