mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
debug: allow easier enabling of ASAN for libjami and contrib builds
Change-Id: I0e142f271fa0db3c3d4af1e57919ef1f65beb8c2
This commit is contained in:

committed by
Adrien Béraud

parent
5028c30bc0
commit
8c745226ea
10
configure.ac
10
configure.ac
@ -40,6 +40,16 @@ AS_IF([test "x$enable_debug" = "xyes"],
|
||||
[DAEMONCFLAGS+=" -DNDEBUG=1 -O3"
|
||||
DAEMONCXXFLAGS+=" -DNDEBUG=1 -O3 -Wno-deprecated"])
|
||||
|
||||
dnl Build using address sanitizer
|
||||
AC_ARG_ENABLE([asan],
|
||||
AS_HELP_STRING([--enable-asan],
|
||||
[Enable address sanitization]))
|
||||
|
||||
AS_IF([test "x$enable_asan" = "xyes"],
|
||||
[DAEMONCXXFLAGS+=" -fsanitize=address -fno-omit-frame-pointer"
|
||||
DAEMONLDFLAGS+=" -fsanitize=address"
|
||||
AC_MSG_NOTICE([WARNING: Address sanitization enabled for libjami])], [])
|
||||
|
||||
AC_ARG_ENABLE([fuzzing],
|
||||
AS_HELP_STRING([--enable-fuzzing],
|
||||
[Build fuzzing tools]))
|
||||
|
Reference in New Issue
Block a user