diff options
-rw-r--r-- | var/spack/repos/builtin/packages/openloops/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openloops/package.py b/var/spack/repos/builtin/packages/openloops/package.py index 6ab081537c..2aa7490031 100644 --- a/var/spack/repos/builtin/packages/openloops/package.py +++ b/var/spack/repos/builtin/packages/openloops/package.py @@ -99,7 +99,11 @@ class Openloops(Package): 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') |