Skip to content

Commit

Permalink
Reintroduce NO_BUILD=1
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 13, 2023
1 parent c300705 commit ead2e39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cargo-afl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,17 @@ fn build_afl(work_dir: &Path, base: Option<&Path>) {
.args(["clean", "install"])
// skip the checks for the legacy x86 afl-gcc compiler
.env("AFL_NO_X86", "1")
// build just the runtime to avoid troubles with Xcode clang on macOS
.env("DESTDIR", common::afl_dir(base))
.env("PREFIX", "")
.env_remove("DEBUG");

if cfg!(feature = "plugins") {
let llvm_config = check_llvm_and_get_config();
command.env("LLVM_CONFIG", llvm_config);
} else {
// build just the runtime to avoid troubles with Xcode clang on macOS
// smoelius: `NO_BUILD=1` also makes `cargo build` significantly faster.
command.env("NO_BUILD", "1");
}

let status = command
Expand Down

0 comments on commit ead2e39

Please sign in to comment.