Update of OpenFOAM package.py (#15190)

This commit is contained in:
OliverPerks 2020-02-25 04:28:13 +00:00 committed by GitHub
parent 4a0b7c9d20
commit 5c68caeb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -825,10 +825,12 @@ def __init__(self, spec, **kwargs):
self.arch_option = '-march=knl'
# spec.architecture.platform is like `uname -s`, but lower-case
platform = spec.architecture.platform
platform = str(spec.architecture.platform)
# spec.target.family is like `uname -m`
target = spec.target.family
target = str(spec.target.family)
# No spack platform family for ia64 or armv7l
if platform == 'linux':
if target == 'x86_64':