aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-05-15 13:18:43 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2014-05-15 13:18:43 +1000
commitc11d988a430d252931f8724f2739d1d41c08d30e (patch)
treee03a8ba0b24622b222937d03c19bdd103ecb24b6
parent0f51ecb02892fd34a514bf9e60a2f292d96a6787 (diff)
downloadscintilla-mirror-c11d988a430d252931f8724f2739d1d41c08d30e.tar.gz
Don't try to use sanitizers on OS X as not built into Clang.
-rw-r--r--test/unit/makefile7
1 files changed, 5 insertions, 2 deletions
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++