]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Add __FUZZING__ flag
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 16 May 2020 21:53:57 +0000 (23:53 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 16 May 2020 21:53:57 +0000 (23:53 +0200)
Makefile

index baf90821912e7ca9781cb08e4e3da94ce0de35ef..374a9b5503f3e676e2145b35d5898eeb78f18f24 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,7 @@ afl: gwion-fuzz
 
 gwion-fuzz:
        @touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c
-       @+PRG=gwion-fuzz CC=afl-clang-fast make
+       @+PRG=gwion-fuzz CC=afl-clang-fast CFLAGS=-D__FUZZING__ make
        @touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c afl
 
 clean_core: