Skip to content

Commit

Permalink
Merge pull request #87 from ryanavella/master
Browse files Browse the repository at this point in the history
Better diagnostics for FreeBSD/NetBSD/OpenBSD when gmake is not found.
  • Loading branch information
PaulGrandperrin committed May 21, 2024
2 parents 912092c + 612f124 commit 9032429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ fn main() {
let status = Command::new(GNU_MAKE)
.args(&["-C", "honggfuzz", "clean"])
.status()
.expect("failed to run \"make -C honggfuzz clean\"");
.unwrap_or_else(|_e| panic!("failed to run \"{} -C honggfuzz clean\"", GNU_MAKE));
assert!(status.success());
// TODO: maybe it's not a good idea to always clean the sources..

// build honggfuzz command and hfuzz static library
let status = Command::new(GNU_MAKE)
.args(&["-C", "honggfuzz", "honggfuzz", "libhfuzz/libhfuzz.a", "libhfcommon/libhfcommon.a"])
.status()
.expect("failed to run \"make -C honggfuzz hongfuzz libhfuzz/libhfuzz.a libhfcommon/libhfcommon.a\"");
.unwrap_or_else(|_e| panic!("failed to run \"{} -C honggfuzz hongfuzz libhfuzz/libhfuzz.a libhfcommon/libhfcommon.a\"", GNU_MAKE));
assert!(status.success());

// copy hfuzz static library to output directory
Expand Down

0 comments on commit 9032429

Please sign in to comment.