Update of OpenFOAM package.py (#15190)
This commit is contained in:
parent
4a0b7c9d20
commit
5c68caeb1e
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user