diff options
-rw-r--r-- | lib/spack/spack/spec.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index ac4ce87331..46400859d3 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -2442,6 +2442,9 @@ class Spec(object): raise spack.error.SpecError( "Spec has no name; cannot concretize an anonymous spec") + if self._concrete: + return + result = spack.solver.asp.solve([self], tests=tests) if not result.satisfiable: result.print_cores() |