Skip to content

Commit

Permalink
build a fast fuzzer, for making coverage fast
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed May 29, 2019
1 parent db52b62 commit 2673c96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fuzzing/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,18 @@ cmake $CMAKEFLAGSALL \

cmake --build $builddir

#builds a fast fuzzer for making coverage fast
builddir=$here/build-fuzzers-fast
mkdir -p $builddir
cd $builddir
CXX="clang++" \
CXXFLAGS="$CXXFLAGSALL -fsanitize=fuzzer-no-link -O3" cmake \
cmake $CMAKEFLAGSALL \
-DFMT_FUZZ_LINKMAIN=Off \
-DFMT_FUZZ_LDFLAGS="-fsanitize=fuzzer" \
-DCMAKE_BUILD_TYPE=Release

cmake --build $builddir


#builds fuzzers for local fuzzing with afl
Expand Down

0 comments on commit 2673c96

Please sign in to comment.