Ensure all builds are optimized, fix #421

-O1 gives better coverage for fuzzing.
This commit is contained in:
Abhishek Arya 2017-03-07 09:28:43 -08:00 committed by GitHub
parent 7643d95314
commit e1d6f4a4fa
1 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,6 @@ ENV CCC "clang++"
# FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is described at
# http://libfuzzer.info#fuzzer-friendly-build-mode
ENV CFLAGS "-fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
ENV CFLAGS "-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
ENV CXXFLAGS_EXTRA "-stdlib=libc++"
ENV CXXFLAGS "$CFLAGS $CXXFLAGS_EXTRA"