[julia]: CPU names are LLVM-style, must map across (#19549)
In this case, the `zen2` architecture is unknown; Spack must use the LLVM-style `znver2` target instead.
This commit is contained in:
parent
8cc08bd88b
commit
771e8b6294
@ -164,6 +164,8 @@ def install(self, spec, prefix):
|
|||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
target_str = str(spec.target).replace('_', '-')
|
target_str = str(spec.target).replace('_', '-')
|
||||||
|
if target_str == "zen2":
|
||||||
|
target_str = "znver2"
|
||||||
options += [
|
options += [
|
||||||
'JULIA_CPU_TARGET={0}'.format(target_str)
|
'JULIA_CPU_TARGET={0}'.format(target_str)
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user