snappy: Build fix. (#4906)

This commit is contained in:
Victor Costan 2021-01-03 00:12:51 -08:00 committed by GitHub
parent a49b7f7e2c
commit 9918fe9030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool gettext pkg-config build-essential
RUN git clone https://github.com/google/snappy
RUN git clone --recurse-submodules https://github.com/google/snappy
WORKDIR $SRC/
COPY build.sh $SRC/

View File

@ -16,7 +16,8 @@
################################################################################
cd $SRC/snappy
mkdir build
cd build && cmake -DSNAPPY_FUZZING_BUILD=ON -DSNAPPY_BUILD_TESTS=OFF ../ && make
mkdir -p build && cd build
cmake -DSNAPPY_FUZZING_BUILD=ON -DSNAPPY_BUILD_TESTS=0 \
-DSNAPPY_BUILD_BENCHMARKS=0 ../ && cmake --build .
cp *_fuzzer $OUT/
cp *_fuzzer $OUT/