From 17f766105f0f96eaa2ed41b4f5fb23f98944888e Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Thu, 10 Oct 2019 03:34:01 -0400 Subject: [PATCH] intel-cl: correct argument order --- mesonbuild/compilers/fortran.py | 4 ++-- mesonbuild/environment.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index 093bbc9d0..57700f922 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -32,7 +32,7 @@ from .mixins.pgi import PGICompiler from .. import mlog from mesonbuild.mesonlib import ( - EnvironmentException, MachineChoice, is_osx, LibType + EnvironmentException, MachineChoice, LibType ) if typing.TYPE_CHECKING: @@ -296,7 +296,7 @@ class IntelClFortranCompiler(IntelVisualStudioLikeCompiler, FortranCompiler): def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, target: str, info: 'MachineInfo', exe_wrapper=None, **kwargs): - FortranCompiler.__init__(self, exelist, for_machine, version, + FortranCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrapper, **kwargs) IntelVisualStudioLikeCompiler.__init__(self, target) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 3ee6d7d78..4f145356f 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -972,8 +972,8 @@ class Environment: cls = IntelClCCompiler if lang == 'c' else IntelClCPPCompiler linker = XilinkDynamicLinker(for_machine, version=version) return cls( - compiler, version, for_machine, is_cross, exe_wrap, - target, info, linker=linker) + compiler, version, for_machine, is_cross, info=info, + exe_wrap=exe_wrap, target=target, linker=linker) if 'Microsoft' in out or 'Microsoft' in err: # Latest versions of Visual Studio print version # number to stderr but earlier ones print version