aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorRobert Cohn <robert.s.cohn@intel.com>2022-10-09 09:14:52 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-10-24 18:55:22 +0300
commit1939e567d6dc7be5cc9495cacde6b984e58409a0 (patch)
treedf970e2821e0b5b95841ba75e7ffab906f8af958 /mesonbuild/compilers/cpp.py
parent942aea230f5e517d5add194240c8943f28d79943 (diff)
downloadmeson-1939e567d6dc7be5cc9495cacde6b984e58409a0.zip
meson-1939e567d6dc7be5cc9495cacde6b984e58409a0.tar.gz
meson-1939e567d6dc7be5cc9495cacde6b984e58409a0.tar.bz2
basic support for oneapi compilers
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 16831c6..c9ca842 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -155,7 +155,7 @@ class CPPCompiler(CLikeCompiler, Compiler):
}
# Currently, remapping is only supported for Clang, Elbrus and GCC
- assert self.id in frozenset(['clang', 'lcc', 'gcc', 'emscripten', 'armltdclang'])
+ assert self.id in frozenset(['clang', 'lcc', 'gcc', 'emscripten', 'armltdclang', 'intel-llvm'])
if cpp_std not in CPP_FALLBACKS:
# 'c++03' and 'c++98' don't have fallback types
@@ -595,6 +595,11 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler):
return []
+class IntelLLVMCPPCompiler(ClangCPPCompiler):
+
+ id = 'intel-llvm'
+
+
class VisualStudioLikeCPPCompilerMixin(CompilerMixinBase):
"""Mixin for C++ specific method overrides in MSVC-like compilers."""
@@ -783,6 +788,11 @@ class IntelClCPPCompiler(VisualStudioLikeCPPCompilerMixin, IntelVisualStudioLike
return IntelVisualStudioLikeCompiler.get_compiler_check_args(self, mode)
+class IntelLLVMClCPPCompiler(IntelClCPPCompiler):
+
+ id = 'intel-llvm-cl'
+
+
class ArmCPPCompiler(ArmCompiler, CPPCompiler):
def __init__(self, exelist: T.List[str], version: str, for_machine: MachineChoice, is_cross: bool,
info: 'MachineInfo', exe_wrapper: T.Optional['ExternalProgram'] = None,