summaryrefslogtreecommitdiffstats
path: root/common.am
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-22 01:47:34 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-22 01:47:34 +0100
commitfac8a744c6033a9c03a3edd40e4fc4a0f72e6e1f (patch)
treead36464b9a98024e04f37bc8ec9c13244b8e5ed7 /common.am
parentMerge pull request #1935 from qlyoung/doc-how-to-style (diff)
downloadfrr-fac8a744c6033a9c03a3edd40e4fc4a0f72e6e1f.tar.xz
frr-fac8a744c6033a9c03a3edd40e4fc4a0f72e6e1f.zip
frr: --enable-address-sanitizer
Modify Autotools files to support an easy option for enabling ASAN. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'common.am')
-rw-r--r--common.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.am b/common.am
index c0094b1b8..a52e83119 100644
--- a/common.am
+++ b/common.am
@@ -8,12 +8,13 @@ am__v_CLIPPY_ = $(am__v_CLIPPY_$(AM_DEFAULT_VERBOSITY))
am__v_CLIPPY_0 = @echo " CLIPPY " $@;
am__v_CLIPPY_1 =
+CLIPPY_SUPPRESSIONS = LSAN_OPTIONS="suppressions=$(top_builddir)/tools/lsan-suppressions.txt"
CLIPPY_DEPS = $(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py
SUFFIXES = _clippy.c .proto .pb-c.c .pb-c.h .pb.h
.c_clippy.c:
@{ test -x $(top_builddir)/$(HOSTTOOLS)lib/clippy || $(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/clippy; }
- $(AM_V_CLIPPY)$(top_builddir)/$(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py -o $@ $<
+ $(AM_V_CLIPPY) $(CLIPPY_SUPPRESSIONS) $(top_builddir)/$(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py -o $@ $<
## automake's "ylwrap" is a great piece of GNU software... not.
.l.c: