tealeaf: Don't add -march=native on ARM and gcc 5.x or before. (#12080)

This commit is contained in:
Toyohisa Kameyama 2019-07-23 03:03:43 +09:00 committed by Adam J. Stewart
parent 8e92409263
commit 58c84423b1

View file

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