Skip to content

Commit c009e4a

Browse files
authored
Fuzzing should not require loading lots of complicated dependencies (simdjson#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.
1 parent c615d52 commit c009e4a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

fuzz/build_fuzzer_variants.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if [ ! -d build-$variant ] ; then
2424
-DCMAKE_BUILD_TYPE=Debug \
2525
-DSIMDJSON_BUILD_STATIC=On \
2626
-DENABLE_FUZZING=On \
27+
-DSIMDJSON_COMPETITION=OFF \
28+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
2729
-DSIMDJSON_FUZZ_LINKMAIN=On \
2830
-DSIMDJSON_IMPLEMENTATION_HASWELL=0
2931

@@ -43,6 +45,8 @@ if [ ! -d build-$variant ] ; then
4345
-DCMAKE_BUILD_TYPE=Debug \
4446
-DSIMDJSON_BUILD_STATIC=On \
4547
-DENABLE_FUZZING=On \
48+
-DSIMDJSON_COMPETITION=OFF \
49+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
4650
-DSIMDJSON_FUZZ_LINKMAIN=On
4751

4852
ninja all_fuzzers
@@ -67,6 +71,8 @@ if [ ! -d build-$variant ] ; then
6771
-DCMAKE_BUILD_TYPE=Debug \
6872
-DSIMDJSON_BUILD_STATIC=On \
6973
-DENABLE_FUZZING=On \
74+
-DSIMDJSON_COMPETITION=OFF \
75+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
7076
-DSIMDJSON_FUZZ_LINKMAIN=Off \
7177
-DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE \
7278
-DSIMDJSON_IMPLEMENTATION_HASWELL=0
@@ -95,6 +101,8 @@ if which clang++-9 >/dev/null 2>&1 ; then
95101
-DCMAKE_BUILD_TYPE=Debug \
96102
-DSIMDJSON_BUILD_STATIC=On \
97103
-DENABLE_FUZZING=On \
104+
-DSIMDJSON_COMPETITION=OFF \
105+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
98106
-DSIMDJSON_FUZZ_LINKMAIN=Off \
99107
-DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE \
100108
-DSIMDJSON_IMPLEMENTATION_HASWELL=0
@@ -124,6 +132,8 @@ if [ ! -d build-$variant ] ; then
124132
-DCMAKE_BUILD_TYPE=Debug \
125133
-DSIMDJSON_BUILD_STATIC=On \
126134
-DENABLE_FUZZING=On \
135+
-DSIMDJSON_COMPETITION=OFF \
136+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
127137
-DSIMDJSON_FUZZ_LINKMAIN=Off \
128138
-DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE
129139

@@ -149,6 +159,8 @@ if which clang++-9 >/dev/null 2>&1 ; then
149159
-DCMAKE_BUILD_TYPE= \
150160
-DSIMDJSON_BUILD_STATIC=On \
151161
-DENABLE_FUZZING=On \
162+
-DSIMDJSON_COMPETITION=OFF \
163+
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF \
152164
-DSIMDJSON_FUZZ_LINKMAIN=Off \
153165
-DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE
154166

0 commit comments

Comments
 (0)