Skip to content
Snippets Groups Projects
Commit b7c06414 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

preserve lookup order in PATH when invoking 'spack compiler add'

parent 92afa52e
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,10 @@ def check(key): ...@@ -202,6 +202,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