Fix issue 573 where Spack was ignoring user's compiler preference in concretization

This commit is contained in:
Matthew LeGendre 2016-03-21 14:28:07 -07:00
parent 6f9a0e73bb
commit b79fce76cb

View File

@ -241,7 +241,7 @@ def concretize_compiler(self, spec):
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):