Skip to content

Commit

Permalink
more debugging - print contents of release dir on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 7, 2024
1 parent 2bc8c8a commit 332fcce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/cargo-gpu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ impl Install {
std::fs::rename(&cli_path, &dest_cli_path).unwrap();
} else {
log::error!("could not find {}", cli_path.display());
log::debug!("contents of '{}':", release.display());
for entry in std::fs::read_dir(&release).unwrap() {
let entry = entry.unwrap();
log::debug!("{}", entry.file_name().to_string_lossy());
}
panic!("spirv-builder-cli build failed");
}
}
Expand Down Expand Up @@ -797,6 +802,7 @@ mod test {

#[test]
fn cached_checkout_dir_sanity() {
// Test that
let spirv = Spirv::default();
let dir = spirv.cached_checkout_path();
let name = dir
Expand Down

0 comments on commit 332fcce

Please sign in to comment.