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:
Tomoki, Karatsu 2020-05-12 16:40:11 +09:00 committed by GitHub
parent b526a90220
commit a59b92d303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,8 @@ def edit(self, spec, prefix):
fc = [spack_fc, '-O3', self.compiler.openmp_flag]
if spec.satisfies('%gcc'):
fc.extend(['-ffixed-form', '-cpp'])
elif spec.satisfies('%fj'):
fc.extend(['-Fixed', '-Cpp'])
filter_file(
'^rm libOpenAT.a$',
'rm -f libOpenAT.a',
@ -44,6 +46,8 @@ def edit(self, spec, prefix):
'LD += .*$',
'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):
sh = which('sh')