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 a61de56 commit 078a755Copy full SHA for 078a755
Utilities/bootstrap
@@ -757,7 +757,7 @@ def get_swiftpm_flags(args):
757
swift_library_rpath_prefix = "$ORIGIN/../"
758
platform_path = None
759
for path in args.target_info["paths"]["runtimeLibraryPaths"]:
760
- platform_path = re.search(r"(lib/swift/[^/]+)$", path)
+ platform_path = re.search(r"(lib/swift/([^/]+))$", path)
761
if platform_path:
762
build_flags.extend(
763
[
@@ -767,6 +767,15 @@ def get_swiftpm_flags(args):
767
swift_library_rpath_prefix + platform_path.group(1),
768
]
769
)
770
+ if platform.system() == 'Linux':
771
+ build_flags.extend(
772
+ [
773
+ "-Xlinker",
774
+ "-rpath",
775
776
+ swift_library_rpath_prefix + '../' + platform_path.group(2),
777
+ ]
778
+ )
779
break
780
781
if not platform_path:
0 commit comments