summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2019-09-25 15:15:23 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-09-25 22:15:23 +0200
commit71cc29691b537e55120e92ab8081ace66de4a00f (patch)
tree8c3bca172d9c892d6434ce20176e9899b6e6c2d4 /var
parentccfe8aaf76f8fc294ea1bf0a9a1cd829c4166c5f (diff)
downloadspack-71cc29691b537e55120e92ab8081ace66de4a00f.tar.gz
spack-71cc29691b537e55120e92ab8081ace66de4a00f.tar.bz2
spack-71cc29691b537e55120e92ab8081ace66de4a00f.tar.xz
spack-71cc29691b537e55120e92ab8081ace66de4a00f.zip
openblas: fixed a query to target family (#12910)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 980585c58c..7dfa98efd8 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -201,7 +201,7 @@ class Openblas(MakefilePackage):
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: