From 01b8a8a31dab8e4c85b7a515bf17b7c22859ca42 Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Sat, 18 Nov 2023 22:37:50 -0800 Subject: [PATCH] Disable ASAN automatically on make release --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f20a4557..a7ee4b93 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,11 @@ endif RELEASE_LDFLAGS := $(LDFLAGS) # debug link flags: -ifndef LOST_DISABLE_ASAN +DISABLE_ASAN = $(or $(LOST_DISABLE_ASAN),$(release)) + +ifeq ($(DISABLE_ASAN),1) + LDFLAGS := $(LDFLAGS) +else LDFLAGS := $(LDFLAGS) -fsanitize=address endif