Skip to content

Commit c5db212

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

+3
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)