summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-18 21:28:59 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-18 21:28:59 +0100
commit61c3be48c13e231e87d835445dc3b9343d7ab250 (patch)
tree481ee382371c7b4ecebfb4e73732c5f58d4cdd00 /Makefile
parentda380e005356f26090606fd7ea2f85aaa858bd5d (diff)
Improve afl target. Use afl-clang by default. Set default for path.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5f07b6f..b5b8bf7 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ RELEASE?=CommonMark-$(VERSION)
INSTALL_PREFIX?=/usr/local
CLANG_CHECK?=clang-check
CLANG_FORMAT=clang-format -style llvm -sort-includes=0 -i
+AFL_PATH?=/usr/local/bin
.PHONY: all cmake_build leakcheck clean fuzztest test debug ubsan asan mingw archive bench format update-spec afl clang-check
@@ -70,7 +71,7 @@ prof:
afl:
@[ -n "$(AFL_PATH)" ] || { echo '$$AFL_PATH not set'; false; }
mkdir -p $(BUILDDIR)
- cd $(BUILDDIR) && cmake .. -DCMAKE_C_COMPILER=$(AFL_PATH)/afl-gcc
+ cd $(BUILDDIR) && cmake .. -DCMAKE_C_COMPILER=$(AFL_PATH)/afl-clang
$(MAKE)
$(AFL_PATH)/afl-fuzz \
-i test/afl_test_cases \