openssl: architecture check is now based on spec target (#24228)

This commit is contained in:
OliverPerks 2021-06-16 15:10:43 +01:00 committed by GitHub
parent 3f9f2c2abe
commit a92bed0dc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,6 @@
import llnl.util.tty as tty
from spack import *
import spack.architecture
import os
import re
@ -115,7 +114,7 @@ def install(self, spec, prefix):
options.append('no-krb5')
# clang does not support the .arch directive in assembly files.
if ('clang' in self.compiler.cc or 'nvc' in self.compiler.cc) and \
'aarch64' in spack.architecture.sys_type():
spec.target.family == 'aarch64':
options.append('no-asm')
# The default glibc provided by CentOS 7 does not provide proper