cache specs by str

This commit is contained in:
Gregory Becker
2022-07-14 10:48:52 -07:00
parent 84ba21ad93
commit 211808f9bc

View File

@@ -230,9 +230,10 @@ def _packages_needed_to_bootstrap_compiler(compiler, architecture, pkgs):
# concretize as Spec to add that information
# cache concretizations within an instantiation of Spack
global _compiler_concretization_cache
if dep not in _compiler_concretization_cache:
_compiler_concretization_cache[dep] = dep.concretized()
concrete_dep = _compiler_concretization_cache[dep]
depstr = str(dep)
if depstr not in _compiler_concretization_cache:
_compiler_concretization_cache[depstr] = dep.concretized()
concrete_dep = _compiler_concretization_cache[depstr]
# mark compiler as depended-on by the packages that use it
for pkg in pkgs: