diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-05-15 13:18:43 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-05-15 13:18:43 +1000 |
commit | c11d988a430d252931f8724f2739d1d41c08d30e (patch) | |
tree | e03a8ba0b24622b222937d03c19bdd103ecb24b6 | |
parent | 0f51ecb02892fd34a514bf9e60a2f292d96a6787 (diff) | |
download | scintilla-mirror-c11d988a430d252931f8724f2739d1d41c08d30e.tar.gz |
Don't try to use sanitizers on OS X as not built into Clang.
-rw-r--r-- | test/unit/makefile | 7 |
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++ |