intel-cl: correct argument order

This commit is contained in:
Michael Hirsch, Ph.D 2019-10-10 03:34:01 -04:00 committed by Dylan Baker
parent 508662f277
commit 17f766105f
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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