From 9e4be39ac7b334239d719623ba33fb8fd279a3f3 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 20 Mar 2018 14:56:30 +1100 Subject: Change standard flag on MacOS as Xcode clang doesn't yet like c++17. --- test/unit/makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/unit/makefile') 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++ -- cgit v1.2.3