Skip to content

Commit f3d7ca0

Browse files
committed
Do not include Swift runtime libs in DYLD_LIBRARY_PATH on Darwin
1 parent 7ead791 commit f3d7ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,12 @@ def get_swiftpm_env_cmd(args):
755755
os.path.join(args.build_dirs["swift-collections"], "lib"),
756756
os.path.join(args.build_dirs["swift-asn1"], "lib"),
757757
os.path.join(args.build_dirs["swift-certificates"], "lib"),
758-
] + args.target_info["paths"]["runtimeLibraryPaths"])
758+
]
759759

760760
if platform.system() == 'Darwin':
761761
env_cmd.append("DYLD_LIBRARY_PATH=%s" % libs_joined)
762762
else:
763-
env_cmd.append("LD_LIBRARY_PATH=%s" % libs_joined)
763+
env_cmd.append("LD_LIBRARY_PATH=%s" % libs_joined + args.target_info["paths"]["runtimeLibraryPaths"]))
764764

765765
return env_cmd
766766

0 commit comments

Comments
 (0)