Skip to content

Commit 3c1ffaa

Browse files
authored
Merge pull request #2212 from jwillemsen/jwi-defaultcpp17
Changed the default to C++17 for QNX and g++ versions older as 11 (11…
2 parents 7add19f + eb7dd3b commit 3c1ffaa

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

ACE/NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
USER VISIBLE CHANGES BETWEEN ACE-7.1.3 and ACE-7.1.4
22
====================================================
33

4+
. With g++ versions < 11 we default to C++17 as
5+
minimum C++ standards level
6+
47
USER VISIBLE CHANGES BETWEEN ACE-7.1.2 and ACE-7.1.3
58
====================================================
69

ACE/include/makeinclude/platform_g++_common.GNU

+14
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ endif
7474

7575
CXX_FULL_VERSION := $(shell $(CXX_FOR_VERSION_TEST) --version)
7676

77+
# Minimum C++ level is now C++17, gcc until version 11 have an older version as default
78+
ifeq ($(findstring $(CXX_MAJOR_VERSION),7),$(CXX_MAJOR_VERSION))
79+
c++std ?= c++17
80+
endif
81+
ifeq ($(findstring $(CXX_MAJOR_VERSION),8),$(CXX_MAJOR_VERSION))
82+
c++std ?= c++17
83+
endif
84+
ifeq ($(findstring $(CXX_MAJOR_VERSION),9),$(CXX_MAJOR_VERSION))
85+
c++std ?= c++17
86+
endif
87+
ifeq ($(findstring $(CXX_MAJOR_VERSION),10),$(CXX_MAJOR_VERSION))
88+
c++std ?= c++17
89+
endif
90+
7791
# Only modify LDFLAGS if DLD has been set.
7892
ifneq ($(DLD),)
7993
ifeq ($(DLD),$(CXX_FOR_VERSION_TEST)) # only try this is we are using ld through gcc

ACE/include/makeinclude/platform_qnx_gcc.GNU

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ debug ?= 1
66
optimize ?= 0
77
threads ?= 1
88
pipes ?= 0
9-
c++std ?= gnu++14
9+
c++std ?= gnu++17
1010

1111
CCFLAGS += -fexceptions
1212
LDFLAGS += -fexceptions

0 commit comments

Comments
 (0)