aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 13:58:36 -0500
committerJack Lloyd <[email protected]>2016-12-11 13:58:36 -0500
commit17c15db0ba713593c03700ebcd48b8f66997fc9c (patch)
tree3f1fd56c1d4b4fff008c611e19a519100faa9016 /src/extra_tests
parentf5189fbe1efe75182f3aebfd923c9769e3a874d7 (diff)
Fix fuzzer build flags [ci skip]
Diffstat (limited to 'src/extra_tests')
-rw-r--r--src/extra_tests/fuzzers/GNUmakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extra_tests/fuzzers/GNUmakefile b/src/extra_tests/fuzzers/GNUmakefile
index aa45eb040..daa5c7a37 100644
--- a/src/extra_tests/fuzzers/GNUmakefile
+++ b/src/extra_tests/fuzzers/GNUmakefile
@@ -4,6 +4,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 -fsanitize-coverage=edge,indirect-calls,8bit-counters
+CFG_FLAGS=--enable-debug --unsafe-fuzzer-mode
SHARED_FLAGS=-O3 -g -std=c++11 -pthread
LIBFUZZER_FLAGS=-DUSE_LLVM_FUZZER -Illvm-build/build/include $(SHARED_FLAGS) $(CLANG_SAN_FLAGS)
AFL_FLAGS=-Iafl-build/build/include $(SHARED_FLAGS)
@@ -40,11 +41,11 @@ dirs:
afl-build:
../../../configure.py $(CFG_FLAGS) --with-build-dir=afl-build --cc=$(AFL_CXX_TYPE) --cc-bin=$(AFL_CXX)
- make -j$(nproc) -f afl-build/Makefile afl-build/libbotan-1.11.a
+ make -j2 -f afl-build/Makefile afl-build/libbotan-1.11.a
llvm-build:
../../../configure.py $(CFG_FLAGS) --with-build-dir=llvm-build --cc=clang --cc-bin=$(CLANG_CXX) --cc-abi-flags="$(CLANG_SAN_FLAGS)"
- make -j$(nproc) -f llvm-build/Makefile llvm-build/libbotan-1.11.a
+ make -j2 -f llvm-build/Makefile llvm-build/libbotan-1.11.a
# libFuzzer default is max_len 64 this sets 140 but allows override via args=
run_llvm_%: bin/llvm_fuzz_%