Skip to content
Snippets Groups Projects
Commit 69f6baf2 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #842 from hegner/compiler_lookup_order

Bugfix - preserve lookup order in PATH when invoking 'spack compiler add'
parents 0f427ed3 b7c06414
No related branches found
No related tags found
No related merge requests found
...@@ -230,6 +230,10 @@ def check(key): ...@@ -230,6 +230,10 @@ def check(key):
return None return None
successful = [key for key in parmap(check, checks) if key is not None] successful = [key for key in parmap(check, checks) if key is not None]
# The 'successful' list is ordered like the input paths.
# Reverse it here so that the dict creation (last insert wins)
# does not spoil the intented precedence.
successful.reverse()
return dict(((v, p, s), path) for v, p, s, path in successful) return dict(((v, p, s), path) for v, p, s, path in successful)
@classmethod @classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment