summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-05-12 20:57:57 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-05-12 20:57:57 -0700
commit107239c9275c2f410e5635555805a4c982b5469b (patch)
tree7faae3b2e9adc3400c2a4a3aff3392466ccf1373 /Makefile
parent59ce480f9663cf662a1dd2e5e74ddc6f1d5de22e (diff)
Add config=sanitize support to Makefile
Diffstat (limited to 'Makefile')
-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))