diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2018-03-20 14:56:30 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2018-03-20 14:56:30 +1100 |
commit | 9e4be39ac7b334239d719623ba33fb8fd279a3f3 (patch) | |
tree | adbc640d8ec78f0f064695c75b7ca6cdff77e343 | |
parent | 76d417ea8a7a87d9c5cd10d21808859b9e3f5a89 (diff) | |
download | scintilla-mirror-9e4be39ac7b334239d719623ba33fb8fd279a3f3.tar.gz |
Change standard flag on MacOS as Xcode clang doesn't yet like c++17.
-rw-r--r-- | test/unit/makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/makefile b/test/unit/makefile index f73dc3f5c..6d8cff665 100644 --- a/test/unit/makefile +++ b/test/unit/makefile @@ -5,15 +5,18 @@ # clang works only with libc++, not libstdc++ # Tested with clang 3.3 and g++ 4.8 +CXXSTD=c++17 + ifndef windir ifeq ($(shell uname),Darwin) # On OS X always use clang as g++ is old version CLANG = 1 USELIBCPP = 1 +CXXSTD=c++1z endif endif -CXXFLAGS += --std=c++17 +CXXFLAGS += --std=$(CXXSTD) ifdef CLANG CXX = clang++ |