hpgmp package: Don't add cpu=native on ARM when using gcc 5.x or before (#12034)

This commit is contained in:
Toyohisa Kameyama 2019-07-30 08:53:59 +09:00 committed by Peter Scheibel
parent b8b2fa226e
commit 5f716b7ffa

View File

@ -68,7 +68,7 @@ def configure_args(self):
cflags.append('-O3')
if self.compiler.target in ['x86_64']:
cflags.append('-march=native')
else:
elif not self.spec.satisfies('target=aarch64 %gcc@:5.9'):
cflags.append('-mcpu=native')
cflags.append('-mtune=native')
else: