Use standard clang/clang++ to build binaries to-be-fuzzed (#1031)

This commit is contained in:
robertswiecki 2017-12-10 00:08:04 +01:00 committed by Oliver Chang
parent 8152732d30
commit 6f2b0b598a
1 changed files with 3 additions and 4 deletions

View File

@ -26,9 +26,8 @@ cp libhfuzz/libhfuzz.a $LIB_FUZZING_ENGINE
cp honggfuzz $OUT/
popd > /dev/null
# Relevant coverage flags are added by the compiler/linker
export COVERAGE_FLAGS=
export CC=$SRC/honggfuzz/hfuzz_cc/hfuzz-clang
export CXX=$SRC/honggfuzz/hfuzz_cc/hfuzz-clang++
# Custom coverage flags, roughly in sync with:
# https://github.com/google/honggfuzz/blob/oss-fuzz/hfuzz_cc/hfuzz-cc.c
export COVERAGE_FLAGS="-fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp"
echo " done."