Skip to content

Commit

Permalink
build.rs: try to fix macOS build failure
Browse files Browse the repository at this point in the history
split command "make clean honggfuzz libhfuzz/libhfuzz.a"
into
"make clean"
and
"make honggfuzz libhfuzz/libhfuzz.a"

No idea why this changes anything, but it does.. only on macOS...

might fix #1
  • Loading branch information
PaulGrandperrin committed Feb 19, 2018
1 parent 961242b commit 29b721d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let pwd = env::var("PWD").unwrap();

// clean upsteam honggfuzz directory
let status = Command::new("make")
.args(&["-C", "honggfuzz", "clean"])
.status()
.expect("failed to run \"make -C honggfuzz clean\"");
assert!(status.success());

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

// copy hfuzz static library to output directory
Expand Down

0 comments on commit 29b721d

Please sign in to comment.