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 = [