We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd4c04 commit a9a42caCopy full SHA for a9a42ca
Utilities/bootstrap
@@ -755,7 +755,7 @@ def get_swiftpm_flags(args):
755
swift_library_rpath_prefix = "$ORIGIN/../"
756
platform_path = None
757
for path in args.target_info["paths"]["runtimeLibraryPaths"]:
758
- platform_path = re.search(r"(lib/swift/[^/]+)$", path)
+ platform_path = re.search(r"(lib/swift/([^/]+))$", path)
759
if platform_path:
760
build_flags.extend(
761
[
@@ -765,6 +765,15 @@ def get_swiftpm_flags(args):
765
swift_library_rpath_prefix + platform_path.group(1),
766
]
767
)
768
+ if platform.system() == 'Linux':
769
+ build_flags.extend(
770
+ [
771
+ "-Xlinker",
772
+ "-rpath",
773
774
+ swift_library_rpath_prefix + '../' + platform_path.group(2),
775
+ ]
776
+ )
777
break
778
779
if not platform_path:
0 commit comments