From 1a9d8cd86124000a287ecbd8a9307ec3a17bbdd7 Mon Sep 17 00:00:00 2001 From: Stuart Hayhurst Date: Thu, 3 Oct 2024 01:35:17 +0100 Subject: [PATCH] Use -fsanitize=address by default for debug mode --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fef759b..3ecd896 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ else endif ifeq ($(DEBUG),true) - CXXFLAGS += -DDEBUG -g + CXXFLAGS += -DDEBUG -g -fsanitize=address endif $(BUILD_DIR)/demo: $(BUILD_DIR)/$(LIBRARY_NAME) $(HELPER_OBJECTS) $(DEMO_OBJECTS) $(OBJECT_DIR)/demo.o