commit 2f9564a28e6e1b69f7e28b5e80ee0096fd283233
parent 52f50cde8ee1ae4898a88abd0a17ffd77d600388
Author: falkTX <falktx@falktx.com>
Date: Fri, 25 Nov 2022 22:37:15 +0000
Add -fsanitize=address to debug make builds
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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