From c009e4a57d128a4831a7f990091c688e71ed8912 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 13 May 2020 08:30:09 -0400 Subject: [PATCH] Fuzzing should not require loading lots of complicated dependencies (#879) * I don't think we need google benchmark as part of the fuzzer * I don't think we should load the "competition" for fuzzing. --- fuzz/build_fuzzer_variants.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fuzz/build_fuzzer_variants.sh b/fuzz/build_fuzzer_variants.sh index d0a62c8d..eb5dd82c 100755 --- a/fuzz/build_fuzzer_variants.sh +++ b/fuzz/build_fuzzer_variants.sh @@ -24,6 +24,8 @@ if [ ! -d build-$variant ] ; then -DCMAKE_BUILD_TYPE=Debug \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=On \ -DSIMDJSON_IMPLEMENTATION_HASWELL=0 @@ -43,6 +45,8 @@ if [ ! -d build-$variant ] ; then -DCMAKE_BUILD_TYPE=Debug \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=On ninja all_fuzzers @@ -67,6 +71,8 @@ if [ ! -d build-$variant ] ; then -DCMAKE_BUILD_TYPE=Debug \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=Off \ -DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE \ -DSIMDJSON_IMPLEMENTATION_HASWELL=0 @@ -95,6 +101,8 @@ if which clang++-9 >/dev/null 2>&1 ; then -DCMAKE_BUILD_TYPE=Debug \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=Off \ -DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE \ -DSIMDJSON_IMPLEMENTATION_HASWELL=0 @@ -124,6 +132,8 @@ if [ ! -d build-$variant ] ; then -DCMAKE_BUILD_TYPE=Debug \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=Off \ -DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE @@ -149,6 +159,8 @@ if which clang++-9 >/dev/null 2>&1 ; then -DCMAKE_BUILD_TYPE= \ -DSIMDJSON_BUILD_STATIC=On \ -DENABLE_FUZZING=On \ + -DSIMDJSON_COMPETITION=OFF \ + -DSIMDJSON_GOOGLE_BENCHMARKS=OFF \ -DSIMDJSON_FUZZ_LINKMAIN=Off \ -DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE