- Commit
- 61c3be48c13e231e87d835445dc3b9343d7ab250
- Parent
- da380e005356f26090606fd7ea2f85aaa858bd5d
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Improve afl target. Use afl-clang by default. Set default for path.
My personal build of CMark ✏️
Improve afl target. Use afl-clang by default. Set default for path.
1 file changed, 2 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | Makefile | 3 | 2 | 1 |
diff --git 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 \