summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ead0ddd..0df07e6 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,11 @@ ifeq ($(config),coverage)
LDFLAGS+=-fprofile-arcs
endif
+ifeq ($(config),sanitize)
+ CXXFLAGS+=-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
+ LDFLAGS+=-fsanitize=address -fsanitize=undefined
+endif
+
ifneq ($(defines),standard)
COMMA=,
CXXFLAGS+=-D $(subst $(COMMA), -D ,$(defines))