serenity: Use in-tree BuildFuzzers.sh script to build fuzz targets (#7309)

This replaces the manual CMake invocations, as the project now will
build code generator tools in a first stage build to enable fuzzing
generated code too.
This commit is contained in:
Andrew Kaster 2022-02-21 16:48:21 -07:00 committed by GitHub
parent d8de53b96f
commit 505b4a4ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View File

@ -15,7 +15,7 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y build-essential cmake curl e2fsprogs libmpfr-dev libmpc-dev libgmp-dev ninja-build
RUN apt-get update && apt-get install -y build-essential cmake curl ninja-build
RUN git clone https://github.com/SerenityOS/serenity
COPY build.sh $SRC/
WORKDIR $SRC/serenity/Meta/Lagom

View File

@ -16,16 +16,5 @@
################################################################################
# Now build the content
mkdir -p build
cd build
cmake -GNinja \
-DBUILD_LAGOM=ON \
-DENABLE_OSS_FUZZ=ON \
-DCMAKE_C_COMPILER=$CC \
-DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DOSS_FUZZ=ON" \
-DLINKER_FLAGS="$LIB_FUZZING_ENGINE" \
..
ninja
cp Fuzzers/Fuzz* $OUT/
./BuildFuzzers.sh --oss-fuzz