aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2021-11-15 20:34:38 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2021-12-22 12:12:11 +0530
commit351aee8ace6eec6b655da321a48a120b020b54c4 (patch)
tree0e6694edd06b70756d3d225a0cdc79dd58240a82 /mesonbuild/mesonlib
parent06b1132f82eaaf805021b4b088701d9754e2af38 (diff)
downloadmeson-351aee8ace6eec6b655da321a48a120b020b54c4.zip
meson-351aee8ace6eec6b655da321a48a120b020b54c4.tar.gz
meson-351aee8ace6eec6b655da321a48a120b020b54c4.tar.bz2
Don't wipe out RPATHs specified by dependencies
Since we scan all dependencies for build-only RPATHs now (which are removed on install), we must take care not to add build-only RPATHs pointing to directories that dependencies explicitly add -Wl,-rpath link args for, otherwise the paths will get wiped on install. Caught by LinuxlikeTests::test_usage_pkgconfig_prefixes
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r--mesonbuild/mesonlib/universal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py
index f193889..53e9514 100644
--- a/mesonbuild/mesonlib/universal.py
+++ b/mesonbuild/mesonlib/universal.py
@@ -1756,6 +1756,10 @@ class OrderedSet(T.MutableSet[_T]):
def difference(self, set_: T.Union[T.Set[_T], 'OrderedSet[_T]']) -> 'OrderedSet[_T]':
return type(self)(e for e in self if e not in set_)
+ def difference_update(self, iterable: T.Iterable[_T]) -> None:
+ for item in iterable:
+ self.discard(item)
+
def relpath(path: str, start: str) -> str:
# On Windows a relative path can't be evaluated for paths on two different
# drives (i.e. c:\foo and f:\bar). The only thing left to do is to use the