Skip to content

Commit c366163

Browse files
authored
Merge pull request #1033 from ahoppen/ahoppen/clean-rpath
Clean up rpaths of installed sourcekit-lsp
2 parents 53560ed + 423c03e commit c366163

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Utilities/build-script-helper.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,7 @@ def get_swiftpm_options(swift_exec: str, args: argparse.Namespace) -> List[str]:
109109

110110
build_target = get_build_target(swift_exec, args, cross_compile=(True if args.cross_compile_config else False))
111111
build_os = build_target.split('-')[2]
112-
if build_os.startswith('macosx'):
113-
swiftpm_args += [
114-
'-Xlinker', '-rpath', '-Xlinker', '/usr/lib/swift',
115-
'-Xlinker', '-rpath', '-Xlinker', '@executable_path/../lib/swift/macosx',
116-
'-Xlinker', '-rpath', '-Xlinker', '@executable_path/../lib/swift-5.5/macosx',
117-
]
118-
else:
112+
if not build_os.startswith('macosx'):
119113
swiftpm_args += [
120114
# Dispatch headers
121115
'-Xcxx', '-I', '-Xcxx',

0 commit comments

Comments
 (0)