openloops: Fix for aarch64 (#19965)

This commit is contained in:
t-nojiri 2020-11-19 13:49:04 +09:00 committed by GitHub
parent a680df8453
commit c9aac3e221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,11 @@ def configure(self, spec, prefix):
f.write('gfortran_f_flags = -ffree-line-length-none\n')
if self.spec.satisfies('@2.1.1') and not is_intel:
f.write('gfortran_f_flags = -ffree-line-length-none ' +
'-fdollar-ok -mcmodel=medium\n')
'-fdollar-ok ')
if self.spec.target.family == 'aarch64':
f.write('-mcmodel=small\n')
else:
f.write('-mcmodel=medium\n')
if self.spec.satisfies('@:1.999.999 processes=lcg.coll'):
copy(join_path(os.path.dirname(__file__), 'sft1.coll'), 'lcg.coll')