Skip to content

Commit 6454360

Browse files
tychonirbheek
authored andcommitted
c++: add fallback mappings for C++23
The c++23 mappings apply to current production compilers (GCC, Clang). Signed-off-by: Steven Noonan <[email protected]> Signed-off-by: Patrick Williams <[email protected]> Backported-by: Nirbheek Chauhan <[email protected]>
1 parent 15fd6ec commit 6454360

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mesonbuild/compilers/cpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def _find_best_cpp_std(self, cpp_std: str) -> str:
154154
'gnu++17': 'gnu++1z',
155155
'c++20': 'c++2a',
156156
'gnu++20': 'gnu++2a',
157+
'c++23': 'c++2b',
158+
'gnu++23': 'gnu++2b',
157159
}
158160

159161
# Currently, remapping is only supported for Clang, Elbrus and GCC

0 commit comments

Comments
 (0)