aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2020-10-06 00:22:05 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2020-10-06 22:11:34 +0300
commit5d7069664bfb2236a0ebbbd6b1bb63b5a4efc4d4 (patch)
tree7e2ef406bb7e477856371b818809828b8597c5fe /mesonbuild
parent94ac51fdda0408c6d1f61e7e5e89cebaa9182842 (diff)
downloadmeson-5d7069664bfb2236a0ebbbd6b1bb63b5a4efc4d4.zip
meson-5d7069664bfb2236a0ebbbd6b1bb63b5a4efc4d4.tar.gz
meson-5d7069664bfb2236a0ebbbd6b1bb63b5a4efc4d4.tar.bz2
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 <vlee@freedesktop.org>
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/cpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 0c63b30..3e9764a 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.',