compiler install: fix bug in construction of compiler spec (#12507)

This commit is contained in:
Greg Becker 2019-08-22 11:57:53 -05:00 committed by Todd Gamblin
parent fadba727d3
commit 5af2378ece

View File

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