tealeaf: Don't add -march=native on ARM and gcc 5.x or before. (#12080)
This commit is contained in:
parent
8e92409263
commit
58c84423b1
1 changed files with 6 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue