1#!/bin/bash -eu 2 3# This script is called by the oss-fuzz main project when compiling the fuzz 4# targets. This script is regression tested by travisoss.sh. 5 6# Save off the current folder as the build root. 7export BUILD_ROOT=$PWD 8 9echo "CC: $CC" 10echo "CXX: $CXX" 11echo "LIB_FUZZING_ENGINE: $LIB_FUZZING_ENGINE" 12echo "CFLAGS: $CFLAGS" 13echo "CXXFLAGS: $CXXFLAGS" 14echo "OUT: $OUT" 15 16export MAKEFLAGS+="-j$(nproc)" 17 18pushd ossfuzz 19make V=1 all 20popd 21 22# Copy the fuzzers to the target directory. 23cp -v ossfuzz/*_fuzzer $OUT/ 24