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