aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2023-09-23 15:48:43 +0200
committerXavier Claessens <xclaesse@gmail.com>2023-09-24 10:52:26 -0400
commitf20f33149495b5b43bba5f06aa5b9ff4ee59a474 (patch)
tree57e02e027e1d50f9c3216c085327fca459918956
parent9c74c73bc7107c794e7f9896cc4220e50ad32bba (diff)
downloadmeson-f20f33149495b5b43bba5f06aa5b9ff4ee59a474.zip
meson-f20f33149495b5b43bba5f06aa5b9ff4ee59a474.tar.gz
meson-f20f33149495b5b43bba5f06aa5b9ff4ee59a474.tar.bz2
cpp: restore c++26 support
c++26 support was added in #11986, but regressed in #10332 because the versions now get checked against the global _ALL_STDS list, and c++26 was missing there. Fix by adding c++26 to _ALL_STDS
-rw-r--r--mesonbuild/compilers/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 3e96682..ba7539c 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -55,7 +55,7 @@ if T.TYPE_CHECKING:
else:
CompilerMixinBase = object
-_ALL_STDS = ['c++98', 'c++0x', 'c++03', 'c++1y', 'c++1z', 'c++11', 'c++14', 'c++17', 'c++2a', 'c++20', 'c++23']
+_ALL_STDS = ['c++98', 'c++0x', 'c++03', 'c++1y', 'c++1z', 'c++11', 'c++14', 'c++17', 'c++2a', 'c++20', 'c++23', 'c++26']
_ALL_STDS += [f'gnu{std[1:]}' for std in _ALL_STDS]
_ALL_STDS += ['vc++11', 'vc++14', 'vc++17', 'vc++20', 'vc++latest', 'c++latest']