Skip to content

Commit 856a6ff

Browse files
authored
Use new SwiftPM flag to remove $ORIGIN from installed docc ELF executable runpath (#738)
1 parent 5ad35a3 commit 856a6ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-script-helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def get_swiftpm_options(action, args):
171171
# Library rpath for swift, dispatch, Foundation, etc. when installing
172172
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/' + build_os,
173173
]
174+
if action == 'install':
175+
swiftpm_args += ['--disable-local-rpath']
174176

175177
cross_compile_hosts = args.cross_compile_hosts
176178
if cross_compile_hosts:

0 commit comments

Comments
 (0)