aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/fuzzers/GNUmakefile
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-31 00:43:36 -0400
committerJack Lloyd <[email protected]>2016-10-31 00:44:01 -0400
commit909490d3a2a8d96732c6428f0cf6e80b10afd560 (patch)
tree21628dd1cdd1e4d567203411022a68cef1a9faec /src/extra_tests/fuzzers/GNUmakefile
parent2608be4689132de0994abec11e83f31afd525ec3 (diff)
More fixes for the fuzzer setup
[ci skip]
Diffstat (limited to 'src/extra_tests/fuzzers/GNUmakefile')
-rw-r--r--src/extra_tests/fuzzers/GNUmakefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/extra_tests/fuzzers/GNUmakefile b/src/extra_tests/fuzzers/GNUmakefile
index 75b302bee..a086f8f1a 100644
--- a/src/extra_tests/fuzzers/GNUmakefile
+++ b/src/extra_tests/fuzzers/GNUmakefile
@@ -1,17 +1,15 @@
FUZZERS=$(patsubst jigs/%.cpp,%,$(wildcard jigs/*.cpp))
-BOTAN_DIR=botan
-
AFL_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined
CLANG_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined -fsanitize-coverage=edge,indirect-calls,8bit-counters
SHARED_FLAGS=-O3 -g -std=c++11 -pthread
-LIBFUZZER_FLAGS=-DUSE_LLVM_FUZZER -I$(BOTAN_DIR)/llvm/build/include $(SHARED_FLAGS) $(CLANG_SAN_FLAGS)
-AFL_FLAGS=-I$(BOTAN_DIR)/afl/build/include $(SHARED_FLAGS)
+LIBFUZZER_FLAGS=-DUSE_LLVM_FUZZER -Illvm-build/build/include $(SHARED_FLAGS) $(CLANG_SAN_FLAGS)
+AFL_FLAGS=-Iafl-build/build/include $(SHARED_FLAGS)
-LIBFUZZER_LIBS=$(BOTAN_DIR)/llvm/libbotan-1.11.a libFuzzer.a
-AFL_LIBS=$(BOTAN_DIR)/afl/libbotan-1.11.a
+LIBFUZZER_LIBS=llvm-build/libbotan-1.11.a libFuzzer.a
+AFL_LIBS=afl-build/libbotan-1.11.a
#AFL_CXX=AFL_USE_ASAN=1 afl-g++ -m32
AFL_CXX=afl-clang-fast++
@@ -61,9 +59,5 @@ libFuzzer.a: libFuzzer
cd libFuzzer && clang -c -g -O2 -std=c++11 *.cpp
ar cr libFuzzer.a libFuzzer/*.o
-setup:
- svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer libFuzzer
-
update:
- cd botan && git pull
svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer libFuzzer