mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
configure: relax --enable-address-sanitizer check a little.
If you use use CC='gcc <options>' this blocks ASAN. Of course, no check is perfect, but this catches the obvious misuse still. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
9f6d5a3c47
commit
17c8090a87
2
configure
vendored
2
configure
vendored
@@ -145,7 +145,7 @@ if [ -z "$VALGRIND" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ASAN" = "1" ]; then
|
if [ "$ASAN" = "1" ]; then
|
||||||
if [ "$CC" != "gcc" ] && [ "$CC" != "cc" ]; then
|
if [ "$CC" == "clang" ]; then
|
||||||
echo "Address sanitizer (ASAN) is currently only supported with gcc"
|
echo "Address sanitizer (ASAN) is currently only supported with gcc"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user