configure: allow to run clang with ASAN

Prefer adding LSAN_OPTIONS="suppressions=$PWD/tests/sanitizer_suppressions/lsan" when CC=clang instead.

Changelog-Added: build: clang build now supports --enable-address-sanitizer .
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
Antoine Poinsot
2020-09-07 16:14:07 +02:00
committed by Rusty Russell
parent 5a87e88ee5
commit 3382dafaee
3 changed files with 6 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
# process_check_funding_broadcast is racy as it operates on a data that may be
# freed under its feet
interceptor_via_fun:process_check_funding_broadcast

View File

@@ -0,0 +1,3 @@
# Clang would detect false positive here, due to padding. See https://github.com/ElementsProject/lightning/pull/2285
leak:ccan/ccan/autodata/autodata.c
leak:ccan/ccan/htable/htable.c