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 | b50f7fe4aa1e097fac089495f52cf1807d6bf53e (patch) | |
tree | 2693ba1f9259eae142c457f6a0e1e54bed0c9664 | |
parent | 547277436fa652c10fd0de28c6501745bc741c90 (diff) | |
download | scintilla-mirror-b50f7fe4aa1e097fac089495f52cf1807d6bf53e.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++ |