Skip to content

Commit

Permalink
Use -fsanitize=address by default for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Oct 3, 2024
1 parent 0bcde65 commit 1a9d8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a9d8cd

Please sign in to comment.