compiler install: fix bug in construction of compiler spec (#12507)
This commit is contained in:
parent
fadba727d3
commit
5af2378ece
@ -339,7 +339,8 @@ def _proper_compiler_style(cspec, aspec):
|
||||
other_compiler
|
||||
)
|
||||
self.concretize_version(cpkg_spec)
|
||||
spec.compiler.versions = cpkg_spec.versions
|
||||
spec.compiler = spack.spec.CompilerSpec(
|
||||
other_compiler.name, cpkg_spec.versions)
|
||||
return True
|
||||
else:
|
||||
# No compiler with a satisfactory spec was found
|
||||
|
Loading…
Reference in New Issue
Block a user