From 5d7069664bfb2236a0ebbbd6b1bb63b5a4efc4d4 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 6 Oct 2020 00:22:05 -0700 Subject: compilers: Enable C++20 for Intel C++ Compiler. Intel C++ Compiler 19.1 has C++20 features. https://software.intel.com/content/www/us/en/develop/articles/intel-c-compiler-191-for-linux-release-notes-for-intel-parallel-studio-xe-2020.html Signed-off-by: Vinson Lee --- mesonbuild/compilers/cpp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 0c63b302b..3e9764a86 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -505,6 +505,9 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler): c_stds += ['c++17'] if version_compare(self.version, '>=17.0.0'): g_stds += ['gnu++14'] + if version_compare(self.version, '>=19.1.0'): + c_stds += ['c++2a'] + g_stds += ['gnu++2a'] opts.update({ 'eh': coredata.UserComboOption( 'C++ exception handling type.', -- cgit v1.2.3