mirror of https://github.com/YosysHQ/yosys.git
Added afl-gcc as target for fuzzer
This commit is contained in:
parent
92dde319fc
commit
2ccbfc8d38
7
Makefile
7
Makefile
|
@ -2,6 +2,7 @@
|
||||||
CONFIG := clang
|
CONFIG := clang
|
||||||
# CONFIG := gcc
|
# CONFIG := gcc
|
||||||
# CONFIG := gcc-4.8
|
# CONFIG := gcc-4.8
|
||||||
|
# CONFIG := afl-gcc
|
||||||
# CONFIG := emcc
|
# CONFIG := emcc
|
||||||
# CONFIG := mxe
|
# CONFIG := mxe
|
||||||
# CONFIG := msys2
|
# CONFIG := msys2
|
||||||
|
@ -191,6 +192,12 @@ LD = gcc-4.8
|
||||||
CXXFLAGS += -std=c++11 -Os
|
CXXFLAGS += -std=c++11 -Os
|
||||||
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H"
|
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)
|
else ifeq ($(CONFIG),cygwin)
|
||||||
CXX = gcc
|
CXX = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
|
|
Loading…
Reference in New Issue