openblas: fixed a query to target family (#12910)

This commit is contained in:
Matthieu Dorier 2019-09-25 15:15:23 -05:00 committed by Massimiliano Culpo
parent ccfe8aaf76
commit 71cc29691b

View file

@ -201,7 +201,7 @@ def make_defs(self):
if '+ilp64' in self.spec:
make_defs += ['INTERFACE64=1']
if 'x86' in self.spec.architecture.target.lower():
if self.spec.target.family == 'x86_64':
if '~avx2' in self.spec:
make_defs += ['NO_AVX2=1']
if '~avx512' in self.spec: