Skip to content

Commit 437de2b

Browse files
authored
Switch to C++17 (#128)
1 parent fc17601 commit 437de2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

AMBuildScript

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@ class MMSConfig(object):
156156
'-fPIC',
157157
]
158158

159-
if cxx.version == 'apple-clang-6.0' or cxx.version == 'clang-3.4':
160-
cxx.cxxflags += ['-std=c++1y']
161-
else:
162-
cxx.cxxflags += ['-std=c++14']
159+
cxx.cxxflags += ['-std=c++17']
163160
if (cxx.version >= 'gcc-4.0') or cxx.family == 'clang':
164161
cxx.cflags += ['-fvisibility=hidden']
165162
cxx.cxxflags += ['-fvisibility-inlines-hidden']
@@ -169,6 +166,7 @@ class MMSConfig(object):
169166
'-fno-threadsafe-statics',
170167
'-Wno-non-virtual-dtor',
171168
'-Wno-overloaded-virtual',
169+
'-Wno-register',
172170
]
173171
if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'):
174172
cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
@@ -206,6 +204,7 @@ class MMSConfig(object):
206204
cxx.cflags += [
207205
'/W3',
208206
'/Zi',
207+
'/std:c++17',
209208
]
210209
cxx.cxxflags += ['/TP']
211210

0 commit comments

Comments
 (0)