Skip to content

Commit

Permalink
bugfix: fortran compiler assertionerror from 0c22798
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 1, 2019
1 parent 025e11c commit 9c1bab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions mesonbuild/compilers/fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class PathScaleFortranCompiler(FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, 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)
self.id = 'pathscale'
default_warn_args = ['-fullwarn']
Expand All @@ -334,7 +334,7 @@ class PGIFortranCompiler(PGICompiler, FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, 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)
PGICompiler.__init__(self)

Expand All @@ -346,7 +346,7 @@ class FlangFortranCompiler(ClangCompiler, FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, 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)
ClangCompiler.__init__(self)
self.id = 'flang'
Expand All @@ -363,7 +363,7 @@ class Open64FortranCompiler(FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, 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)
self.id = 'open64'
default_warn_args = ['-fullwarn']
Expand All @@ -380,7 +380,7 @@ class NAGFortranCompiler(FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, 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)
self.id = 'nagfor'

Expand Down
3 changes: 1 addition & 2 deletions mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,8 +1151,7 @@ def detect_fortran_compiler(self, for_machine: MachineChoice):
compiler, for_machine, 'pgi',
PGIFortranCompiler.LINKER_PREFIX, version=version)
return PGIFortranCompiler(
compiler, version, for_machine, is_cross,
self.machines[for_machine], exe_wrap,
compiler, version, for_machine, is_cross, info, exe_wrap,
full_version=full_version, linker=linker)

if 'flang' in out or 'clang' in out:
Expand Down

0 comments on commit 9c1bab6

Please sign in to comment.