diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-10 01:11:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-10 01:11:18 -0700 |
commit | 69f6baf28e15eef59c0bbc854bfe86f59f57c876 (patch) | |
tree | 929b697c172e261f4b2901cee1bc4dd123ad49bb /lib | |
parent | 0f427ed334f8a58e888872d60419709cfd6f41c3 (diff) | |
parent | b7c064142e6e4beb960aa979815471c3889ec925 (diff) | |
download | spack-69f6baf28e15eef59c0bbc854bfe86f59f57c876.tar.gz spack-69f6baf28e15eef59c0bbc854bfe86f59f57c876.tar.bz2 spack-69f6baf28e15eef59c0bbc854bfe86f59f57c876.tar.xz spack-69f6baf28e15eef59c0bbc854bfe86f59f57c876.zip |
Merge pull request #842 from hegner/compiler_lookup_order
Bugfix - preserve lookup order in PATH when invoking 'spack compiler add'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compiler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index b53c17494c..030dc449fc 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -230,6 +230,10 @@ class Compiler(object): return 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) @classmethod |