xabclib: added support for Fujitsu compiler. (#16596)
- Added Fujitsu compiler options that have the same functions as the options added for GCC - Added option to link C objects
This commit is contained in:
parent
b526a90220
commit
a59b92d303
@ -21,6 +21,8 @@ def edit(self, spec, prefix):
|
|||||||
fc = [spack_fc, '-O3', self.compiler.openmp_flag]
|
fc = [spack_fc, '-O3', self.compiler.openmp_flag]
|
||||||
if spec.satisfies('%gcc'):
|
if spec.satisfies('%gcc'):
|
||||||
fc.extend(['-ffixed-form', '-cpp'])
|
fc.extend(['-ffixed-form', '-cpp'])
|
||||||
|
elif spec.satisfies('%fj'):
|
||||||
|
fc.extend(['-Fixed', '-Cpp'])
|
||||||
filter_file(
|
filter_file(
|
||||||
'^rm libOpenAT.a$',
|
'^rm libOpenAT.a$',
|
||||||
'rm -f libOpenAT.a',
|
'rm -f libOpenAT.a',
|
||||||
@ -44,6 +46,8 @@ def edit(self, spec, prefix):
|
|||||||
'LD += .*$',
|
'LD += .*$',
|
||||||
'LD = {0}'.format(' '.join(fc))
|
'LD = {0}'.format(' '.join(fc))
|
||||||
)
|
)
|
||||||
|
if spec.satisfies('%fj') and 'samples_c' in makefile:
|
||||||
|
m.filter('$(LD)', '$(LD) -mlcmain=main', string=True)
|
||||||
|
|
||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
sh = which('sh')
|
sh = which('sh')
|
||||||
|
Loading…
Reference in New Issue
Block a user