Add -fsanitize-address-use-after-scope to --enable-asan if available
This commit is contained in:
parent
c10ef083d6
commit
c1bf52dbc3
|
@ -109,6 +109,7 @@ AC_ARG_ENABLE([asan],
|
|||
if test "$enableval" = yes; then
|
||||
asan=yes
|
||||
CFLAGS=$CFLAGS" -fsanitize=address -fno-omit-frame-pointer"
|
||||
AX_CHECK_COMPILE_FLAG([-fsanitize-address-use-after-scope], [CFLAGS="$CFLAGS -fsanitize-address-use-after-scope"])
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in New Issue