From ead2e3962f75341f9d6b08460745c5b046715aac Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 13 Nov 2023 13:54:32 -0500 Subject: [PATCH] Reintroduce `NO_BUILD=1` --- cargo-afl/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cargo-afl/build.rs b/cargo-afl/build.rs index 5f94aa474..aef1bb03b 100644 --- a/cargo-afl/build.rs +++ b/cargo-afl/build.rs @@ -75,7 +75,6 @@ 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"); @@ -83,6 +82,10 @@ fn build_afl(work_dir: &Path, base: Option<&Path>) { 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