add optional support for building with asan

This commit is contained in:
djcb
2018-11-03 15:47:39 +02:00
parent 7c63fe65eb
commit 052a228be7
8 changed files with 66 additions and 25 deletions

View File

@ -31,8 +31,15 @@ AM_CPPFLAGS=$(XAPIAN_CXXFLAGS) \
# don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not
# really need all the params they get
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
AM_CFLAGS= \
$(WARN_CFLAGS) \
$(ASAN_CFLAGS)
AM_CXXFLAGS= \
$(WARN_CXXFLAGS) \
$(ASAN_CXXFLAGS)
AM_LDFLAGS= \
$(ASAN_LDFLAGS)
noinst_PROGRAMS= $(TEST_PROGS)