diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-08-15 02:48:20 +0100 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-08-15 02:48:20 +0100 |
| commit | 9ab2fc3e20dffed0aa420ba96dad56f683904f9c (patch) | |
| tree | 2cb4e67ae21d5fb9764fdde9157ebf48553ebd02 /security/afl++/files/patch-GNUmakefile.llvm | |
| parent | 72dbee7159a3a74c7cae5a672191d8ec537a8aca (diff) | |
| parent | b45fe3947d467dd83c888a7edee30963c0230613 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/main
Diffstat (limited to 'security/afl++/files/patch-GNUmakefile.llvm')
| -rw-r--r-- | security/afl++/files/patch-GNUmakefile.llvm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/afl++/files/patch-GNUmakefile.llvm b/security/afl++/files/patch-GNUmakefile.llvm new file mode 100644 index 000000000000..8642167f99eb --- /dev/null +++ b/security/afl++/files/patch-GNUmakefile.llvm @@ -0,0 +1,20 @@ +--- GNUmakefile.llvm.orig 2025-06-28 20:29:37 UTC ++++ GNUmakefile.llvm +@@ -554,6 +554,9 @@ test_build: $(PROGS) + + .PHONY: test_build + test_build: $(PROGS) ++ifdef AFL_NO_TEST_BUILD ++ @echo "[*] Not testing the CC wrapper and instrumentation output (AFL_NO_TEST_BUILD set)." ++else + @echo "[*] Testing the CC wrapper and instrumentation output..." + unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS) + ifdef IS_IOS +@@ -564,6 +567,7 @@ endif + @rm -f test-instr + @cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation does not seem to be behaving correctly!"; echo; echo "Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue."; echo; exit 1; fi + @echo "[+] All right, the instrumentation seems to be working!" ++endif + + .PHONY: all_done + all_done: test_build |
