Skip to content

Commit 16413c2

Browse files
authored
Merge pull request #299 from DavidKorczynski/fix-fuzzer-build
Fix OSS-Fuzz build
2 parents e570065 + a77af68 commit 16413c2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: tests/ossfuzz.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@
1818
# This script is meant to be run by
1919
# https://github.com/google/oss-fuzz/blob/master/projects/miniz/Dockerfile
2020

21+
cat << "EOF" > miniz_export.h
22+
#ifndef MINIZ_EXPORT
23+
#define MINIZ_EXPORT
24+
#endif
25+
EOF
26+
2127
mkdir build
2228
cd build
23-
cmake .. -DAMALGAMATE_SOURCES=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FUZZERS=ON
29+
cmake .. -DAMALGAMATE_SOURCES=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FUZZERS=ON -DBUILD_TESTS=OFF
2430
make -j$(nproc)
2531
cd ..
2632

@@ -39,4 +45,4 @@ done
3945
rm -f $OUT/zip_fuzzer_seed_corpus.zip
4046
zip $OUT/zip_fuzzer_seed_corpus.zip $OUT/seed_corpus.zip
4147

42-
cp tests/zip.dict $OUT/zip_fuzzer.dict
48+
cp tests/zip.dict $OUT/zip_fuzzer.dict

0 commit comments

Comments
 (0)