Skip to content

Commit 380c0a7

Browse files
committed
bootstrap: allow building with shared BlocksRuntime
1 parent 892f4a0 commit 380c0a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Utilities/bootstrap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ class llbuild(object):
587587
if self.args.foundation_path:
588588
link_command.extend(["-L", self.args.foundation_path])
589589
if self.args.libdispatch_build_dir:
590+
link_command.extend(['-L', self.args.libdispatch_build_dir,
591+
'-Xlinker', '-lBlocksRuntime'])
590592
link_command.extend(["-L", os.path.join(self.args.libdispatch_build_dir, "src", ".libs")])
591593

592594
# Add llbuild link flags.
@@ -1125,6 +1127,9 @@ def main():
11251127
symlink_force(os.path.join(args.foundation_path, 'libFoundation.so'),
11261128
libswiftdir)
11271129
if args.libdispatch_build_dir:
1130+
symlink_force(os.path.join(args.libdispatch_build_dir,
1131+
'libBlocksRuntime.so'),
1132+
libswiftdir)
11281133
symlink_force(os.path.join(args.libdispatch_build_dir, "src", ".libs", "libdispatch.so"),
11291134
libswiftdir)
11301135

@@ -1191,6 +1196,8 @@ def main():
11911196
build_flags.extend(["-Xswiftc", "-I{}".format(
11921197
args.libdispatch_source_dir)])
11931198
build_flags.extend(["-Xcc", "-fblocks"])
1199+
build_flags.extend(['-Xlinker', '-L', '-Xlinker', args.libdispatch_build_dir,
1200+
'-Xlinker', '-lBlocksRuntime'])
11941201

11951202
if args.link_llbuild:
11961203
# Add llbuild import flags.

0 commit comments

Comments
 (0)