Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Utilities/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def add_build_args(parser):
"--llbuild-link-framework",
action="store_true",
help="whether to link to the llbuild framework")
parser.add_argument(
"--extra-dynamic-library-path",
help="path to add to DYLD/LD_LIBRARY_PATH")
parser.add_argument(
"--release",
action="store_true",
Expand Down Expand Up @@ -891,6 +894,9 @@ def get_swiftpm_env_cmd(args):
os.path.join(args.build_dirs["swift-build"], "lib"),
]

if args.extra_dynamic_library_path:
libs.append(args.extra_dynamic_library_path)

if platform.system() == 'Darwin':
env_cmd.append("DYLD_LIBRARY_PATH=%s" % ":".join(libs))
else:
Expand Down