Build AFL libs with -O2, #421

This commit is contained in:
Abhishek Arya 2017-03-07 09:29:39 -08:00 committed by GitHub
parent e1d6f4a4fa
commit 534c720afc
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export COVERAGE_FLAGS="-fsanitize-coverage=trace-pc-guard"
mkdir -p $WORK/afl
pushd $WORK/afl > /dev/null
$CC $CFLAGS -c $SRC/afl/llvm_mode/afl-llvm-rt.o.c
$CXX $CXXFLAGS -std=c++11 -c $SRC/libfuzzer/afl/*.cpp -I$SRC/libfuzzer
$CXX $CXXFLAGS -std=c++11 -O2 -c $SRC/libfuzzer/afl/*.cpp -I$SRC/libfuzzer
ar r $LIB_FUZZING_ENGINE $WORK/afl/*.o
popd > /dev/null
rm -rf $WORK/afl