Skip to content

Commit

Permalink
thrash windows
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 20, 2024
1 parent dbd3cf5 commit da6d77a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/cargo-gpu/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,14 @@ impl Install {
.stderr(std::process::Stdio::inherit())
.output()
.unwrap();
assert!(output.status.success(), "...build error!");
if !output.status.success() {
log::error!(
"build error:\nstd_out: {}\nstd_err: {}",
String::from_utf8_lossy(&output.stdout),
String::from_utf8_lossy(&output.stderr)
);
panic!("aborting because the build command returned an error");
}

if dylib_path.is_file() {
log::info!("successfully built {}", dylib_path.display());
Expand Down

0 comments on commit da6d77a

Please sign in to comment.