From e1d6f4a4fa7a4c5cd34720f26581eaa70b4e6b0e Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Tue, 7 Mar 2017 09:28:43 -0800 Subject: [PATCH] Ensure all builds are optimized, fix #421 -O1 gives better coverage for fuzzing. --- infra/base-images/base-clang/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-clang/Dockerfile b/infra/base-images/base-clang/Dockerfile index 4d1e8ec9e..334cb571c 100644 --- a/infra/base-images/base-clang/Dockerfile +++ b/infra/base-images/base-clang/Dockerfile @@ -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"