diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-10-01 13:58:23 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-10-01 15:06:10 -0700 |
commit | 2fe400c350a49930c3fbe86602efa9e0950bb1cb (patch) | |
tree | 9af47dbe99154b6c4bd6fb20a369ddf51a3f9645 /mesonbuild | |
parent | f9316fbb46a8fcc7f69db7164e8ac0b30a0212d2 (diff) | |
download | meson-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.py | 4 |
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, |