summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2022-11-25 22:37:42 +0000
committerfalkTX <falktx@falktx.com>2022-11-25 22:38:08 +0000
commit2f9564a28e6e1b69f7e28b5e80ee0096fd283233 (patch)
treeac105644fd2eca263cb4a0e6646e0c3c8fd026b1
parent52f50cde8ee1ae4898a88abd0a17ffd77d600388 (diff)
Add -fsanitize=address to debug make builds
Signed-off-by: falkTX <falktx@falktx.com>
-rw-r--r--Makefile.base.mk2
1 files changed, 1 insertions, 1 deletions
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