diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-11-18 21:28:59 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-11-18 21:28:59 +0100 |
commit | 61c3be48c13e231e87d835445dc3b9343d7ab250 (patch) | |
tree | 481ee382371c7b4ecebfb4e73732c5f58d4cdd00 /Makefile | |
parent | da380e005356f26090606fd7ea2f85aaa858bd5d (diff) |
Improve afl target. Use afl-clang by default. Set default for path.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 \ |