From c9aac3e221b847a7db231628a0c3cfe707046a85 Mon Sep 17 00:00:00 2001 From: t-nojiri <68096132+t-nojiri@users.noreply.github.com> Date: Thu, 19 Nov 2020 13:49:04 +0900 Subject: openloops: Fix for aarch64 (#19965) --- var/spack/repos/builtin/packages/openloops/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2