Skip to content

Commit

Permalink
[Build Script Helper] Use new SwiftPM flag to remove $ORIGIN from i…
Browse files Browse the repository at this point in the history
…nstalled ELF executable runpaths
  • Loading branch information
finagolfin authored and artemcm committed Oct 31, 2023
1 parent 5e319e5 commit eb63540
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Utilities/build-script-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def get_swiftpm_options(args):
if args.cross_compile_hosts:
swiftpm_args += ['--destination', args.cross_compile_config]

if args.action == 'install':
swiftpm_args += ['--disable-local-rpath']

if '-android' in args.build_target:
swiftpm_args += [
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/android',
Expand Down

0 comments on commit eb63540

Please sign in to comment.