From 2f9564a28e6e1b69f7e28b5e80ee0096fd283233 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 25 Nov 2022 22:37:42 +0000 Subject: [PATCH] Add -fsanitize=address to debug make builds Signed-off-by: falkTX --- Makefile.base.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.base.mk b/Makefile.base.mk index 6cf69a82..651c1e0f 100644 --- a/Makefile.base.mk +++ b/Makefile.base.mk @@ -272,7 +272,7 @@ BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections endif ifeq ($(DEBUG),true) -BASE_FLAGS += -DDEBUG -O0 -g +BASE_FLAGS += -DDEBUG -O0 -g -fsanitize=address LINK_OPTS = ifeq ($(WASM),true) LINK_OPTS += -sASSERTIONS=1