From 658b0d10003508d9551378c8b132c2f572b03a19 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Tue, 20 Jun 2023 14:33:50 -0700 Subject: [PATCH] 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 Signed-off-by: Patrick Williams --- mesonbuild/compilers/cpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 0c6892374..14e2638fc 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