summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-06-13 00:00:08 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-06-13 00:00:08 -0700
commit238b786bfe7d6bc792b97b950cccf7db1ce06aa9 (patch)
tree10516f346d906872d65d1e700b2bb522fe62eae5
parentd04df2a48ba81725b704d92810277c5eb0206db4 (diff)
Makefile now supports Xcode 7 ASAN
All other sanitizers are still unavailable so only enable them on non-OSX systems.
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0df07e6..606c056 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,13 @@ ifeq ($(config),coverage)
endif
ifeq ($(config),sanitize)
- CXXFLAGS+=-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
- LDFLAGS+=-fsanitize=address -fsanitize=undefined
+ CXXFLAGS+=-fsanitize=address
+ LDFLAGS+=-fsanitize=address
+
+ ifneq ($(shell uname),Darwin)
+ CXXFLAGS+=-fsanitize=undefined
+ LDFLAGS+=-fsanitize=undefined
+ endif
endif
ifneq ($(defines),standard)