From 2fe400c350a49930c3fbe86602efa9e0950bb1cb Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 1 Oct 2020 13:58:23 -0700 Subject: [PATCH] compilers/icl fix IntelClCPP argument checking Unlike MSVC and ClangCl it needs to call into it's own compiler check args --- mesonbuild/compilers/cpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index d934fa8e9..0c63b302b 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,