pmdk: fix x86_64 arch check (#13676)

This commit is contained in:
Phil Carns 2019-11-11 09:46:44 -05:00 committed by Massimiliano Culpo
parent bd9907809e
commit 4934448065

View File

@ -4,7 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import spack.architecture
class Pmdk(Package):
@ -36,7 +35,7 @@ def install(self, spec, prefix):
# pmdk is particular about the ARCH specification, must be
# exactly "x86_64" for build to work
if 'x86_64' in spack.architecture.sys_type():
if spec.target.family == 'x86_64':
make_args += ['ARCH=x86_64']
make("install", *make_args)