summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2019-07-23 03:03:43 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-22 13:03:43 -0500
commit58c84423b1b7433caa1a48460265681c06c38e68 (patch)
tree03545328891cffdf73ad43656d42b336af9cd7fc
parent8e924092632295b429aef93faf5c2fb345a03f04 (diff)
downloadspack-58c84423b1b7433caa1a48460265681c06c38e68.tar.gz
spack-58c84423b1b7433caa1a48460265681c06c38e68.tar.bz2
spack-58c84423b1b7433caa1a48460265681c06c38e68.tar.xz
spack-58c84423b1b7433caa1a48460265681c06c38e68.zip
tealeaf: Don't add -march=native on ARM and gcc 5.x or before. (#12080)
-rw-r--r--var/spack/repos/builtin/packages/tealeaf/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tealeaf/package.py b/var/spack/repos/builtin/packages/tealeaf/package.py
index 3c75f6e376..439b708ed0 100644
--- a/var/spack/repos/builtin/packages/tealeaf/package.py
+++ b/var/spack/repos/builtin/packages/tealeaf/package.py
@@ -24,6 +24,12 @@ class Tealeaf(MakefilePackage):
depends_on('mpi')
+ def edit(self, spec, prefix):
+ if (spec.satisfies('target=aarch64 %gcc@:5.9')):
+ filter_file(
+ '-march=native', '', join_path('TeaLeaf_ref', 'Makefile')
+ )
+
@property
def build_targets(self):
targets = [