aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2023-04-11 11:34:01 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2023-05-24 02:02:52 +0530
commit9bfdae8d7765ba293ef93ec4a47ebecd93e8fa19 (patch)
tree4e6e1790046a006327db5fc6d570a7a224a6cdc5
parent4c72b6da56e5fee4e7056e1771c8c58111235612 (diff)
downloadmeson-9bfdae8d7765ba293ef93ec4a47ebecd93e8fa19.zip
meson-9bfdae8d7765ba293ef93ec4a47ebecd93e8fa19.tar.gz
meson-9bfdae8d7765ba293ef93ec4a47ebecd93e8fa19.tar.bz2
Add c++23 to the list of C++ standards.
-rw-r--r--mesonbuild/compilers/cpp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index b37f8cd..3da5b7f 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -384,11 +384,15 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler):
False,
)
})
- opts[key].choices = [
+ cppstd_choices = [
'none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
'c++2a', 'c++20', 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17',
'gnu++1z', 'gnu++2a', 'gnu++20',
]
+ if version_compare(self.version, '>=12.2.0'):
+ cppstd_choices.append('c++23')
+ cppstd_choices.append('gnu++23')
+ opts[key].choices = cppstd_choices
if self.info.is_windows() or self.info.is_cygwin():
opts.update({
key.evolve('winlibs'): coredata.UserArrayOption(