From 9918fe9030fe0adfb844dc61188916770cc65d35 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Sun, 3 Jan 2021 00:12:51 -0800 Subject: [PATCH] snappy: Build fix. (#4906) --- projects/snappy/Dockerfile | 2 +- projects/snappy/build.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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/