better handle link args: PGI and Flang

correct flang, pgi options
pull/4792/head
Michael Hirsch, Ph.D 6 years ago
parent b40c1af900
commit 9a318d3d5a
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 10
      mesonbuild/compilers/compilers.py
  2. 4
      mesonbuild/compilers/fortran.py

@ -1619,7 +1619,10 @@ class PGICompiler:
return ['-silent']
def openmp_flags(self):
return ['-fopenmp']
return ['-mp']
def get_allow_undefined_link_args(self):
return []
class FlangCompiler:
@ -1639,7 +1642,10 @@ class FlangCompiler:
return ['-silent']
def openmp_flags(self):
return ['-fopenmp']
return ['-mp']
def get_allow_undefined_link_args(self):
return []
class ElbrusCompiler(GnuCompiler):

@ -371,7 +371,7 @@ class PathScaleFortranCompiler(FortranCompiler):
return ['-mp']
class PGIFortranCompiler(FortranCompiler):
class PGIFortranCompiler(PGICompiler, FortranCompiler):
def __init__(self, exelist, version, is_cross, exe_wrapper=None, **kwags):
FortranCompiler.__init__(self, exelist, version, is_cross, exe_wrapper, **kwags)
PGICompiler.__init__(self, CompilerType.PGI_STANDARD)
@ -383,7 +383,7 @@ class PGIFortranCompiler(FortranCompiler):
return val
class FlangFortranCompiler(FortranCompiler):
class FlangFortranCompiler(FlangCompiler, FortranCompiler):
def __init__(self, exelist, version, is_cross, exe_wrapper=None, **kwags):
FortranCompiler.__init__(self, exelist, version, is_cross, exe_wrapper, **kwags)
FlangCompiler.__init__(self, CompilerType.FLANG_STANDARD)

Loading…
Cancel
Save