aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-10-01 13:58:23 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-10-01 15:06:10 -0700
commit2fe400c350a49930c3fbe86602efa9e0950bb1cb (patch)
tree9af47dbe99154b6c4bd6fb20a369ddf51a3f9645 /mesonbuild
parentf9316fbb46a8fcc7f69db7164e8ac0b30a0212d2 (diff)
downloadmeson-2fe400c350a49930c3fbe86602efa9e0950bb1cb.zip
meson-2fe400c350a49930c3fbe86602efa9e0950bb1cb.tar.gz
meson-2fe400c350a49930c3fbe86602efa9e0950bb1cb.tar.bz2
compilers/icl fix IntelClCPP argument checking
Unlike MSVC and ClangCl it needs to call into it's own compiler check args
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/cpp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index d934fa8..0c63b30 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -707,6 +707,10 @@ class IntelClCPPCompiler(VisualStudioLikeCPPCompilerMixin, IntelVisualStudioLike
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)
+ def get_compiler_check_args(self, mode: CompileCheckMode) -> T.List[str]:
+ # XXX: this is a hack because so much GnuLike stuff is in the base CPPCompiler class.
+ return IntelVisualStudioLikeCompiler.get_compiler_check_args(self, mode)
+
class ArmCPPCompiler(ArmCompiler, CPPCompiler):
def __init__(self, exelist: T.List[str], version: str, for_machine: MachineChoice, is_cross: bool,