summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ACE/include/makeinclude/platform_linux_clang.GNU16
1 files changed, 12 insertions, 4 deletions
diff --git a/ACE/include/makeinclude/platform_linux_clang.GNU b/ACE/include/makeinclude/platform_linux_clang.GNU
index 1bc22c06a02..48a5e346241 100644
--- a/ACE/include/makeinclude/platform_linux_clang.GNU
+++ b/ACE/include/makeinclude/platform_linux_clang.GNU
@@ -18,10 +18,18 @@ else
CXX_MAJOR_VERSION := $(shell $(CXX) -dumpversion | sed -e 's/[^0-9\.]//g' | sed -e 's/\..*$$//')
endif
-# clang5 has C++03 as default C++ version, enable this to be C++11
-# the older clang versions all return 4.2.1 as part of dumpversion
-ifeq ($(findstring $(CXX_MAJOR_VERSION),4),$(CXX_MAJOR_VERSION))
- c++11 ?= 1
+# clang5/6/7/8 have C++11 as default C++ version, enable this to be C++14
+ifeq ($(findstring $(CXX_MAJOR_VERSION),5),$(CXX_MAJOR_VERSION))
+ c++14 ?= 1
+endif
+ifeq ($(findstring $(CXX_MAJOR_VERSION),6),$(CXX_MAJOR_VERSION))
+ c++14 ?= 1
+endif
+ifeq ($(findstring $(CXX_MAJOR_VERSION),7),$(CXX_MAJOR_VERSION))
+ c++14 ?= 1
+endif
+ifeq ($(findstring $(CXX_MAJOR_VERSION),8),$(CXX_MAJOR_VERSION))
+ c++14 ?= 1
endif
CCFLAGS += $(CFLAGS)