From: Miodrag Milanovic Date: Mon, 27 May 2019 18:38:44 +0000 (+0200) Subject: Added afl-gcc as target for fuzzer X-Git-Tag: yosys-0.9~104^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ccbfc8d38ca0c7cb1a00dc512ed552c7c9feda3;p=yosys.git Added afl-gcc as target for fuzzer --- diff --git a/Makefile b/Makefile index db60e8288..2174076e4 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ CONFIG := clang # CONFIG := gcc # CONFIG := gcc-4.8 +# CONFIG := afl-gcc # CONFIG := emcc # CONFIG := mxe # CONFIG := msys2 @@ -191,6 +192,12 @@ LD = gcc-4.8 CXXFLAGS += -std=c++11 -Os ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H" +else ifeq ($(CONFIG),afl-gcc) +CXX = AFL_QUIET=1 AFL_HARDEN=1 afl-gcc +LD = AFL_QUIET=1 AFL_HARDEN=1 afl-gcc +CXXFLAGS += -std=c++11 -Os +ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H" + else ifeq ($(CONFIG),cygwin) CXX = gcc LD = gcc