[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:
Elliot Saba 2020-11-03 10:04:29 -08:00 committed by GitHub
parent 8cc08bd88b
commit 771e8b6294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
]