diff options
author | Matthew LeGendre <legendre1@llnl.gov> | 2016-03-21 14:28:07 -0700 |
---|---|---|
committer | Matthew LeGendre <legendre1@llnl.gov> | 2016-03-21 14:28:07 -0700 |
commit | b79fce76cb4d412cf718b48b05d549470e4c55ab (patch) | |
tree | b111a3b9db55827fe856c7672a9a4e2ba6ba74ea | |
parent | 6f9a0e73bbef591d0ca829e4b81bb245b2c81d69 (diff) | |
download | spack-b79fce76cb4d412cf718b48b05d549470e4c55ab.tar.gz spack-b79fce76cb4d412cf718b48b05d549470e4c55ab.tar.bz2 spack-b79fce76cb4d412cf718b48b05d549470e4c55ab.tar.xz spack-b79fce76cb4d412cf718b48b05d549470e4c55ab.zip |
Fix issue 573 where Spack was ignoring user's compiler preference in concretization
-rw-r--r-- | lib/spack/spack/concretize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index 8083f91982..2e576743ec 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -241,7 +241,7 @@ class DefaultConcretizer(object): return False #Find the another spec that has a compiler, or the root if none do - other_spec = find_spec(spec, lambda(x) : x.compiler) + other_spec = spec if spec.compiler else find_spec(spec, lambda(x) : x.compiler) if not other_spec: other_spec = spec.root other_compiler = other_spec.compiler @@ -288,7 +288,7 @@ def find_spec(spec, condition): if condition(spec): return spec - return None # Nohting matched the condition. + return None # Nothing matched the condition. def cmp_specs(lhs, rhs): |