From 17c8090a874ff7b735d0f6b18b5e2dc90ff922d6 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Feb 2019 13:36:37 +1030 Subject: [PATCH] configure: relax --enable-address-sanitizer check a little. If you use use CC='gcc ' this blocks ASAN. Of course, no check is perfect, but this catches the obvious misuse still. Signed-off-by: Rusty Russell --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index c30c3dc70..2866be162 100755 --- a/configure +++ b/configure @@ -145,7 +145,7 @@ if [ -z "$VALGRIND" ]; then fi if [ "$ASAN" = "1" ]; then - if [ "$CC" != "gcc" ] && [ "$CC" != "cc" ]; then + if [ "$CC" == "clang" ]; then echo "Address sanitizer (ASAN) is currently only supported with gcc" exit 1 fi