diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-08-08 04:08:32 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-08-08 05:45:45 -0700 |
commit | 6c8f81333a34db54ccb23c063bb479c8e41f7d08 (patch) | |
tree | 40c1b6b17928747d378edd80ad40434148385be2 /mesonbuild/mesonlib.py | |
parent | 8402a2223382af76d85ea65e59ad17b0bb3b24ce (diff) | |
download | meson-6c8f81333a34db54ccb23c063bb479c8e41f7d08.zip meson-6c8f81333a34db54ccb23c063bb479c8e41f7d08.tar.gz meson-6c8f81333a34db54ccb23c063bb479c8e41f7d08.tar.bz2 |
PkgConfigDependency: Fix library path search order
We were searching the library paths in the reverse order, which meant
that we'd pick libraries from the wrong prefix.
Closes https://github.com/mesonbuild/meson/issues/3951
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index e5a81d8..1b9cb42 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -1088,6 +1088,9 @@ class OrderedSet(collections.MutableSet): '", "'.join(repr(e) for e in self.__container.keys())) return 'OrderedSet()' + def __reversed__(self): + return reversed(self.__container) + def add(self, value): self.__container[value] = None |