From 707608ce0c0a860a7daea26e811bffef8e13bd1a Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sat, 19 Mar 2022 00:55:26 +0900 Subject: [PATCH] Remove deleting toolchain rpath step the install script has been broken since https://github.com/apple/swift-package-manager/commit/8876f871413409a3df2ae68f1c3a7d146ee72cfa which stops adding toolchain rpath for older OSes without system swift libraries. --- Utilities/build-script-helper.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Utilities/build-script-helper.py b/Utilities/build-script-helper.py index a64795c69..988b1b530 100755 --- a/Utilities/build-script-helper.py +++ b/Utilities/build-script-helper.py @@ -82,13 +82,6 @@ def install_binary(exe, source_dir, install_dir, toolchain): if platform.system() == 'Darwin': result_path = os.path.join(install_dir, exe) stdlib_rpath = os.path.join(toolchain, 'lib', 'swift', 'macosx') - delete_rpath(stdlib_rpath, result_path) - -def delete_rpath(rpath, binary): - cmd = ["install_name_tool", "-delete_rpath", rpath, binary] - print(' '.join(cmd)) - subprocess.check_call(cmd) - def handle_invocation(swift_exec, args): swiftpm_args = get_swiftpm_options(args)