aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2023-06-20 14:33:50 -0700
committerPatrick Williams <patrick@stwcx.xyz>2023-07-14 13:29:16 -0500
commit658b0d10003508d9551378c8b132c2f572b03a19 (patch)
tree2d2e1f5ed27a06c273b363428a5a1a1496db8067 /mesonbuild/compilers/cpp.py
parent51d04776a3158ec8a50ea21fde2f19a8d6cdf4ee (diff)
downloadmeson-658b0d10003508d9551378c8b132c2f572b03a19.zip
meson-658b0d10003508d9551378c8b132c2f572b03a19.tar.gz
meson-658b0d10003508d9551378c8b132c2f572b03a19.tar.bz2
c++: add fallback mappings for C++23 and C++26
The c++23 mappings apply to current production compilers (GCC, Clang). None of the production c++ compilers support c++26 flags yet, but this mapping will be ready once they do. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 0c68923..14e2638 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -154,6 +154,10 @@ class CPPCompiler(CLikeCompiler, Compiler):
'gnu++17': 'gnu++1z',
'c++20': 'c++2a',
'gnu++20': 'gnu++2a',
+ 'c++23': 'c++2b',
+ 'gnu++23': 'gnu++2b',
+ 'c++26': 'c++2c',
+ 'gnu++26': 'gnu++2c',
}
# Currently, remapping is only supported for Clang, Elbrus and GCC