Update build script (#860)

This commit is contained in:
Eugene Kliuchnikov 2017-09-26 02:29:46 +02:00 committed by Abhishek Arya
parent bf16050624
commit 84d20d9ac9
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash -eu
cmake . -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF
cmake . -DBUILD_TESTING=OFF
make clean
make -j$(nproc) brotlidec
make -j$(nproc) brotlidec-static
$CXX $CXXFLAGS -std=c++11 -I. \
c/fuzz/decode_fuzzer.cc -I./c/include -o $OUT/decode_fuzzer \
-lFuzzingEngine ./libbrotlidec.a ./libbrotlicommon.a
-lFuzzingEngine ./libbrotlidec-static.a ./libbrotlicommon-static.a
cp java/org/brotli/integration/fuzz_data.zip $OUT/decode_fuzzer_seed_corpus.zip
chmod a-x $OUT/decode_fuzzer_seed_corpus.zip # we will try to run it otherwise