[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
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,8 @@ def install(self, spec, prefix):
|
|||
]
|
||||
else:
|
||||
target_str = str(spec.target).replace('_', '-')
|
||||
if target_str == "zen2":
|
||||
target_str = "znver2"
|
||||
options += [
|
||||
'JULIA_CPU_TARGET={0}'.format(target_str)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue