Skip to content

Commit

Permalink
add a build adapted for analysis of fuzzing performance
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed May 30, 2019
1 parent 56f7cf3 commit f0d7ccc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuzzing/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ CXX="ccache g++" CXXFLAGS="$CXXFLAGSALL" cmake \
$root -GNinja -DCMAKE_BUILD_TYPE=Debug -DFMT_DOC=Off -DFMT_TEST=Off -DFMT_FUZZ=On
cmake --build $builddir

#for performance analysis of the fuzzers
builddir=$here/build-fuzzers-perfanalysis
mkdir -p $builddir
cd $builddir
CXX="ccache g++" CXXFLAGS="$CXXFLAGSALL -g" cmake \
$CMAKEFLAGSALL \
-DFMT_FUZZ_LINKMAIN=On \
-DCMAKE_BUILD_TYPE=Release

cmake --build $builddir

#builds the fuzzers as oss-fuzz does
builddir=$here/build-fuzzers-ossfuzz
Expand Down

0 comments on commit f0d7ccc

Please sign in to comment.