Skip to content

Commit 30dd104

Browse files
authored
Merge pull request #1631 from compnerd/shared
bootstrap: allow building with shared BlocksRuntime
2 parents 2da6f3e + 380c0a7 commit 30dd104

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
@@ -586,6 +586,8 @@ class llbuild(object):
586586
if self.args.foundation_path:
587587
link_command.extend(["-L", self.args.foundation_path])
588588
if self.args.libdispatch_build_dir:
589+
link_command.extend(['-L', self.args.libdispatch_build_dir,
590+
'-Xlinker', '-lBlocksRuntime'])
589591
link_command.extend(["-L", os.path.join(self.args.libdispatch_build_dir, "src", ".libs")])
590592

591593
# Add llbuild link flags.
@@ -1140,6 +1142,9 @@ def main():
11401142
symlink_force(os.path.join(args.foundation_path, 'libFoundation.so'),
11411143
libswiftdir)
11421144
if args.libdispatch_build_dir:
1145+
symlink_force(os.path.join(args.libdispatch_build_dir,
1146+
'libBlocksRuntime.so'),
1147+
libswiftdir)
11431148
symlink_force(os.path.join(args.libdispatch_build_dir, "src", ".libs", "libdispatch.so"),
11441149
libswiftdir)
11451150

@@ -1206,6 +1211,8 @@ def main():
12061211
build_flags.extend(["-Xswiftc", "-I{}".format(
12071212
args.libdispatch_source_dir)])
12081213
build_flags.extend(["-Xcc", "-fblocks"])
1214+
build_flags.extend(['-Xlinker', '-L', '-Xlinker', args.libdispatch_build_dir,
1215+
'-Xlinker', '-lBlocksRuntime'])
12091216

12101217
# Add llbuild import flags.
12111218
for import_path in llbuild_import_paths(args):

0 commit comments

Comments
 (0)