We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee54561 commit 556faacCopy full SHA for 556faac
mesonpy/_rpath.py
@@ -74,7 +74,7 @@ def fix_rpath(filepath: Path, libs_relative_path: str) -> None:
74
75
def _get_rpath(filepath: Path) -> List[str]:
76
r = subprocess.run(['patchelf', '--print-rpath', os.fspath(filepath)], capture_output=True, text=True)
77
- return r.stdout.strip().split(':')
+ return [x for x in r.stdout.strip().split(':') if x]
78
79
def _set_rpath(filepath: Path, rpath: Iterable[str]) -> None:
80
subprocess.run(['patchelf','--set-rpath', ':'.join(rpath), os.fspath(filepath)], check=True)
0 commit comments