diff --git a/projects/snappy/Dockerfile b/projects/snappy/Dockerfile index aba691b30..45e8e30c8 100644 --- a/projects/snappy/Dockerfile +++ b/projects/snappy/Dockerfile @@ -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/ diff --git a/projects/snappy/build.sh b/projects/snappy/build.sh index 6aa2ecb84..44c059eab 100755 --- a/projects/snappy/build.sh +++ b/projects/snappy/build.sh @@ -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/ \ No newline at end of file +cp *_fuzzer $OUT/