diff options
author | Greg Becker <becker33@llnl.gov> | 2019-08-22 11:57:53 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-08-22 09:57:53 -0700 |
commit | 5af2378ece9bac962b179322c671e22239f10a83 (patch) | |
tree | 57ff50ecf66914b9614ebada98549c75d9ce4294 /lib | |
parent | fadba727d3e7973406236ccb4e22c422566fc05d (diff) | |
download | spack-5af2378ece9bac962b179322c671e22239f10a83.tar.gz spack-5af2378ece9bac962b179322c671e22239f10a83.tar.bz2 spack-5af2378ece9bac962b179322c671e22239f10a83.tar.xz spack-5af2378ece9bac962b179322c671e22239f10a83.zip |
compiler install: fix bug in construction of compiler spec (#12507)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/concretize.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index 044dbe5fb2..136a9d67f0 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -339,7 +339,8 @@ class Concretizer(object): 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 |