Skip to content

Commit eb63540

Browse files
finagolfinartemcm
authored andcommitted
[Build Script Helper] Use new SwiftPM flag to remove $ORIGIN from installed ELF executable runpaths
1 parent 5e319e5 commit eb63540

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def get_swiftpm_options(args):
9898
if args.cross_compile_hosts:
9999
swiftpm_args += ['--destination', args.cross_compile_config]
100100

101+
if args.action == 'install':
102+
swiftpm_args += ['--disable-local-rpath']
103+
101104
if '-android' in args.build_target:
102105
swiftpm_args += [
103106
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/android',

0 commit comments

Comments
 (0)