better handle link args: PGI and Flang
correct flang, pgi options
This commit is contained in:
parent
b40c1af900
commit
9a318d3d5a
|
@ -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…
Reference in New Issue