Skip to content

Commit 7d5db6d

Browse files
Allow to fail to delete rpath when not found
the install script has been broken since swiftlang/swift-package-manager@8876f87 which stops adding toolchain rpath for older OSes without system swift libraries.
1 parent 4e01bde commit 7d5db6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Utilities/build-script-helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def install_binary(exe, source_dir, install_dir, toolchain):
8787
def delete_rpath(rpath, binary):
8888
cmd = ["install_name_tool", "-delete_rpath", rpath, binary]
8989
print(' '.join(cmd))
90-
subprocess.check_call(cmd)
90+
# allow failing when the given rpath is not found
91+
subprocess.call(cmd)
9192

9293

9394
def handle_invocation(swift_exec, args):

0 commit comments

Comments
 (0)