projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92dde31
)
Added afl-gcc as target for fuzzer
author
Miodrag Milanovic
<mmicko@gmail.com>
Mon, 27 May 2019 18:38:44 +0000
(20:38 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Mon, 27 May 2019 18:38:44 +0000
(20:38 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index db60e82886077f6509417a8f08e3897f51cf5963..2174076e4a305271e6934b018c208fa52c715c68 100644
(file)
--- 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