Skip to content

Commit 9e27835

Browse files
authored
Merge pull request #34404 from rjmccall/harden-rpathize
2 parents 39cc436 + a7f4534 commit 9e27835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift-rpathize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def rpathize(filename):
6060
# The output from dyldinfo -dylibs is a line of header followed by one
6161
# install name per line, indented with spaces.
6262
dylib_regex = re.compile(
63-
r"^\s*(?P<path>/usr/lib/swift/(?P<filename>.*\.dylib))\s*$")
63+
r"(^|.*\s)(?P<path>/usr/lib/swift/(?P<filename>.*\.dylib))\s*$")
6464

6565
# Build a command to invoke install_name_tool.
6666
command = ['install_name_tool']

0 commit comments

Comments
 (0)