diff options
-rw-r--r-- | docs/markdown/snippets/clang_cl_c++20.md | 3 | ||||
-rw-r--r-- | mesonbuild/compilers/cpp.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/markdown/snippets/clang_cl_c++20.md b/docs/markdown/snippets/clang_cl_c++20.md new file mode 100644 index 0000000..9abc874 --- /dev/null +++ b/docs/markdown/snippets/clang_cl_c++20.md @@ -0,0 +1,3 @@ +## `clang-cl` now accepts `cpp_std=c++20` + +Requires `clang-cl` 13 or later. diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 5789bb5..6566587 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -771,7 +771,7 @@ class ClangClCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixin, Cl ClangClCompiler.__init__(self, target) def get_options(self) -> 'MutableKeyedOptionDictType': - cpp_stds = ['none', 'c++11', 'vc++11', 'c++14', 'vc++14', 'c++17', 'vc++17', 'c++latest'] + cpp_stds = ['none', 'c++11', 'vc++11', 'c++14', 'vc++14', 'c++17', 'vc++17', 'c++20', 'vc++20', 'c++latest'] return self._get_options_impl(super().get_options(), cpp_stds) |