diff options
Diffstat (limited to 'test')
-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++ |