From 60155332aebec8c17d531a0090825291b83f91e5 Mon Sep 17 00:00:00 2001 From: sappho Date: Sat, 7 Oct 2023 22:19:20 -0400 Subject: [PATCH 1/2] tenatively update mms to C++17 --- AMBuildScript | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index ff93bf51..3070a923 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -215,10 +215,7 @@ class MMSConfig(object): '-fPIC', ] - if cxx.version == 'apple-clang-6.0' or cxx.version == 'clang-3.4': - cxx.cxxflags += ['-std=c++1y'] - else: - cxx.cxxflags += ['-std=c++14'] + cxx.cxxflags += ['-std=c++17'] if (cxx.version >= 'gcc-4.0') or cxx.family == 'clang': cxx.cflags += ['-fvisibility=hidden'] cxx.cxxflags += ['-fvisibility-inlines-hidden'] @@ -265,6 +262,7 @@ class MMSConfig(object): cxx.cflags += [ '/W3', '/Zi', + '/std:c++17', ] cxx.cxxflags += ['/TP'] From d6718303795b04b4ee3256bbde876c672ac9c319 Mon Sep 17 00:00:00 2001 From: sappho Date: Sat, 7 Oct 2023 23:40:04 -0400 Subject: [PATCH 2/2] -wno-register --- AMBuildScript | 1 + 1 file changed, 1 insertion(+) diff --git a/AMBuildScript b/AMBuildScript index 3070a923..84a37f7a 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -225,6 +225,7 @@ class MMSConfig(object): '-fno-threadsafe-statics', '-Wno-non-virtual-dtor', '-Wno-overloaded-virtual', + '-Wno-register', ] if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']