summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-07-24 23:39:40 +0900
committerGitHub <noreply@github.com>2020-07-24 16:39:40 +0200
commit13b3578d2f9d296475da8dffe097b8ae68516422 (patch)
treeaa149f9cb231313c942812f86a1bb0c4a53e270d
parent08b5b565666d42a6802e136fc8e7cf8d355929b0 (diff)
downloadspack-13b3578d2f9d296475da8dffe097b8ae68516422.tar.gz
spack-13b3578d2f9d296475da8dffe097b8ae68516422.tar.bz2
spack-13b3578d2f9d296475da8dffe097b8ae68516422.tar.xz
spack-13b3578d2f9d296475da8dffe097b8ae68516422.zip
camx: change compile option for aarch64 (#17653)
-rw-r--r--var/spack/repos/builtin/packages/camx/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/camx/package.py b/var/spack/repos/builtin/packages/camx/package.py
index b65ffeaf38..473c60ca05 100644
--- a/var/spack/repos/builtin/packages/camx/package.py
+++ b/var/spack/repos/builtin/packages/camx/package.py
@@ -60,6 +60,10 @@ class Camx(MakefilePackage):
def edit(self, spec, prefix):
makefile = FileFilter('Makefile')
+ if spec.target.family == 'aarch64':
+ makefile.filter('-mcmodel=medium', '-mcmodel=large')
+ makefile = FileFilter('./MPI/util/Makefile')
+ makefile.filter('-mcmodel=medium', '-mcmodel=large')
# Support Intel MPI.
if spec['mpi'].name == 'intel-mpi':