From 238b786bfe7d6bc792b97b950cccf7db1ce06aa9 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 13 Jun 2015 00:00:08 -0700 Subject: Makefile now supports Xcode 7 ASAN All other sanitizers are still unavailable so only enable them on non-OSX systems. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3