aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-30 15:53:50 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-13 11:22:31 -0700
commitfa54f05f09da9b1878d51f35535e54e0222c4f1e (patch)
tree881dbc875b10a3e5937f0724eed6df41555ecad4 /mesonbuild/compilers/cpp.py
parentde011e031c83db8f88958573815feaef3bce0d1d (diff)
downloadmeson-fa54f05f09da9b1878d51f35535e54e0222c4f1e.zip
meson-fa54f05f09da9b1878d51f35535e54e0222c4f1e.tar.gz
meson-fa54f05f09da9b1878d51f35535e54e0222c4f1e.tar.bz2
compilers: Add basic ICL abstractions
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index fe2839a..c5079cb 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -28,6 +28,7 @@ from .compilers import (
GnuCompiler,
ElbrusCompiler,
IntelGnuLikeCompiler,
+ IntelVisualStudioLikeCompiler,
PGICompiler,
ArmCompiler,
ArmclangCompiler,
@@ -483,6 +484,18 @@ class ClangClCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixin, Vi
return self._get_options_impl(super().get_options(), cpp_stds)
+class IntelClCPPCompiler(VisualStudioLikeCPPCompilerMixin, IntelVisualStudioLikeCompiler, CPPCompiler):
+
+ def __init__(self, exelist, version, is_cross, exe_wrap, target):
+ CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap)
+ IntelVisualStudioLikeCompiler.__init__(self, target)
+
+ def get_options(self):
+ # This has only been tested with verison 19.0,
+ cpp_stds = ['none', 'c++11', 'vc++11', 'c++14', 'vc++14', 'c++17', 'vc++17', 'c++latest']
+ return self._get_options_impl(super().get_options(), cpp_stds)
+
+
class ArmCPPCompiler(ArmCompiler, CPPCompiler):
def __init__(self, exelist, version, compiler_type, is_cross, exe_wrap=None, **kwargs):
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap, **kwargs)