configure: do not add fsanitize cflags with ossfuzz if coverage is tested
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 18 Aug 2018 08:34:15 +0000 (10:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Aug 2018 14:00:26 +0000 (16:00 +0200)
Found-by: Max Moroz
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
configure

index 9b5421d..b9c9d0b 100755 (executable)
--- a/configure
+++ b/configure
@@ -3964,7 +3964,7 @@ set >> $logfile
 
 test -n "$valgrind" && toolchain="valgrind-memcheck"
 
-enabled ossfuzz && ! echo $CFLAGS | grep -q -- "-fsanitize="  &&{
+enabled ossfuzz && ! echo $CFLAGS | grep -q -- "-fsanitize="  && ! echo $CFLAGS | grep -q -- "-fcoverage-mapping" &&{
     add_cflags  -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp -fno-omit-frame-pointer
     add_ldflags -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp
 }