Compile fuzzers with Clang++ (#993)

This commit is contained in:
Matt Kwong 2017-11-16 21:50:18 -08:00 committed by Abhishek Arya
parent 2c04c55f62
commit 373c1e4c11
1 changed files with 1 additions and 4 deletions

View File

@ -62,12 +62,9 @@ CXXFLAGS="${CXXFLAGS} -Iinclude -I. -stdlib=libc++"
for file in $FUZZER_FILES; do
fuzzer_name=$(basename $file .cc)
fuzzer_object="${file::-1}o"
echo "Building fuzzer $fuzzer_name"
$CC $CFLAGS \
$file -c -o $fuzzer_object
$CXX $CXXFLAGS \
$fuzzer_object -o $OUT/$fuzzer_name \
$file -o $OUT/$fuzzer_name \
-lFuzzingEngine ${FUZZER_LIBRARIES}
done