From b50f7fe4aa1e097fac089495f52cf1807d6bf53e Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 15 May 2014 13:18:43 +1000 Subject: Don't try to use sanitizers on OS X as not built into Clang. --- test/unit/makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/unit') diff --git a/test/unit/makefile b/test/unit/makefile index 31e545dcd..683391100 100644 --- a/test/unit/makefile +++ b/test/unit/makefile @@ -17,11 +17,14 @@ CXXFLAGS += --std=c++11 ifdef CLANG CXX = clang++ -SANITIZE = -fsanitize=address,undefined -CXXFLAGS += $(SANITIZE) ifdef USELIBCPP +# OS X, use libc++ but don't have sanitizers CXXFLAGS += --stdlib=libc++ LINKFLAGS = -lc++ +else +# Linux, have sanitizers +SANITIZE = -fsanitize=address,undefined +CXXFLAGS += $(SANITIZE) endif else CXX = g++ -- cgit v1.2.3