Skip to content

Commit e766d36

Browse files
compnerdaciidgh
authored andcommitted
build: do not consult the legacy locations for libraries
Update the library search paths to ensure that we use the new library paths from the CMake based builds. This is a pure cleanup patch to remove some legacy cruft from libdispatch.
1 parent 87523ce commit e766d36

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Utilities/bootstrap

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ class llbuild(object):
584584
if self.args.libdispatch_build_dir:
585585
link_command.extend(['-L', self.args.libdispatch_build_dir,
586586
'-Xlinker', '-lBlocksRuntime'])
587-
link_command.extend(["-L", os.path.join(self.args.libdispatch_build_dir, "src", ".libs")])
587+
link_command.extend(["-L", os.path.join(self.args.libdispatch_build_dir, "src")])
588588

589589
# Add llbuild link flags.
590590
link_command.extend(llbuild_link_args(self.args))
@@ -1156,7 +1156,9 @@ def main():
11561156
symlink_force(os.path.join(args.libdispatch_build_dir,
11571157
'libBlocksRuntime.so'),
11581158
libswiftdir)
1159-
symlink_force(os.path.join(args.libdispatch_build_dir, "src", ".libs", "libdispatch.so"),
1159+
symlink_force(os.path.join(args.libdispatch_build_dir, "src", "libdispatch.so"),
1160+
libswiftdir)
1161+
symlink_force(os.path.join(args.libdispatch_build_dir, "src", "libswiftDispatch.so"),
11601162
libswiftdir)
11611163

11621164
make_fake_toolchain()
@@ -1207,7 +1209,7 @@ def main():
12071209

12081210
if args.libdispatch_build_dir:
12091211
build_flags.extend(["-Xlinker", "-L{}".format(
1210-
os.path.join(args.libdispatch_build_dir, "src", ".libs"))])
1212+
os.path.join(args.libdispatch_build_dir, "src"))])
12111213
build_flags.extend(["-Xswiftc", "-I{}".format(
12121214
os.path.join(args.libdispatch_build_dir, "src"))])
12131215
build_flags.extend(["-Xswiftc", "-I{}".format(

0 commit comments

Comments
 (0)