We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcddad9 commit d8fe91aCopy full SHA for d8fe91a
build.rs
@@ -289,7 +289,17 @@ fn build() {
289
.arg(&format!("-j{}", cpu_number))
290
.output()
291
.expect(&format!("make -C {:?} failed", source_path));
292
- assert!(result.status.success());
+ if !result.status.success() {
293
+ let stderr = format!(
294
+ "* stderr:\n{}",
295
+ String::from_utf8(result.stderr).expect("invalid utf8 str from make stderr")
296
+ );
297
+ let stdout = format!(
298
+ "* stdout:\n{}",
299
+ String::from_utf8(result.stdout).expect("invalid utf8 str from make stdout")
300
301
+ panic!("make failed:\n{}", vec![stderr, stdout].join("\n\n"));
302
+ }
303
}
304
305
// LINK
0 commit comments