aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-06 20:58:58 -0500
committerJack Lloyd <[email protected]>2017-01-06 20:58:58 -0500
commit7ebcd99be632ce0b02a11b0e09e475bae6448f53 (patch)
treed29dfabfcb740e1f1a7683422fbf0bec9076fa4c /src/extra_tests
parent719bbcbbefba40eb0b5aa1cbac95824896af9a36 (diff)
Fix library name in fuzzer makefile
[ci skip]
Diffstat (limited to 'src/extra_tests')
-rw-r--r--src/extra_tests/fuzzers/GNUmakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/extra_tests/fuzzers/GNUmakefile b/src/extra_tests/fuzzers/GNUmakefile
index 24c3c500a..84563cb17 100644
--- a/src/extra_tests/fuzzers/GNUmakefile
+++ b/src/extra_tests/fuzzers/GNUmakefile
@@ -3,6 +3,7 @@ FUZZERS=$(patsubst jigs/%.cpp,%,$(wildcard jigs/*.cpp))
AFL_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined
CLANG_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined
+#CLANG_SAN_FLAGS=-fsanitize=address
CLANG_COV_FLAGS=-fsanitize-coverage=edge,indirect-calls,8bit-counters
SHARED_FLAGS=-O3 -g -std=c++11 -pthread
@@ -11,8 +12,8 @@ CFG_FLAGS=--with-debug-info --unsafe-fuzzer-mode
LIBFUZZER_FLAGS=-Illvm-build/build/include $(SHARED_FLAGS) $(CLANG_COV_FLAGS) $(CLANG_SAN_FLAGS)
AFL_FLAGS=-Iafl-build/build/include $(SHARED_FLAGS) -DINCLUDE_AFL_MAIN
-LIBFUZZER_LIBS=llvm-build/libbotan-1.11.a libFuzzer.a
-AFL_LIBS=afl-build/libbotan-1.11.a
+LIBFUZZER_LIBS=llvm-build/libbotan-2.a libFuzzer.a
+AFL_LIBS=afl-build/libbotan-2.a
#AFL_CXX=AFL_USE_ASAN=1 afl-g++ -m32
AFL_CXX=afl-g++
@@ -43,11 +44,11 @@ dirs:
afl-build:
../../../configure.py $(CFG_FLAGS) --with-build-dir=afl-build --cc=$(AFL_CXX_TYPE) --cc-bin=$(AFL_CXX)
- make -j2 -f afl-build/Makefile afl-build/libbotan-1.11.a
+ make -j2 -f afl-build/Makefile afl-build/libbotan-2.a
llvm-build:
../../../configure.py $(CFG_FLAGS) --with-build-dir=llvm-build --cc=clang --cc-bin=$(CLANG_CXX) --cc-abi-flags="$(CLANG_COV_FLAGS) $(CLANG_SAN_FLAGS)"
- make -j2 -f llvm-build/Makefile llvm-build/libbotan-1.11.a
+ make -j2 -f llvm-build/Makefile llvm-build/libbotan-2.a
# libFuzzer default is max_len 64 this sets 140 but allows override via args=
run_llvm_%: bin/llvm_fuzz_%
@@ -73,7 +74,7 @@ cmin_%: bin/afl_fuzz_%
clean:
rm -f $(LIBFUZZER_PROGS) $(AFL_PROGS)
-clean_builds:
+clean_builds: clean
rm -rf afl-build llvm-build
libFuzzer: