Skip to content

Commit 7d50eda

Browse files
committed
build: stage movement for dispatch build output
In order to support libdispatch tests on Windows, the build tree layout needs to be adjusted. Account for this path adjustment here in a compatible manner.
1 parent 6bb3169 commit 7d50eda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Utilities/bootstrap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ class Target(object):
261261
other_args.extend(["-Xcc", "-F" + args.foundation_path])
262262
import_paths.append(os.path.join(args.foundation_path, "swift"))
263263
if args.libdispatch_build_dir:
264+
import_paths.append(os.path.join(args.libdispatch_build_dir, 'lib'))
264265
import_paths.append(os.path.join(args.libdispatch_build_dir, "src"))
265266
import_paths.append(os.path.join(args.libdispatch_build_dir, "src", "swift"))
266267
if args.libdispatch_source_dir:
@@ -579,8 +580,10 @@ class llbuild(object):
579580
link_command.extend(["-L", self.args.foundation_path])
580581
if self.args.libdispatch_build_dir:
581582
link_command.extend(['-L', self.args.libdispatch_build_dir,
583+
'-L', os.path.join(self.args.libdispatch_build_dir, 'lib'),
582584
'-Xlinker', '-lBlocksRuntime'])
583-
link_command.extend(["-L", os.path.join(self.args.libdispatch_build_dir, "src")])
585+
link_command.extend(['-L', os.path.join(self.args.libdispatch_build_dir, "src"),
586+
'-L', os.path.join(self.args.libdispatch_build_dir, 'lib')])
584587

585588
# Add llbuild link flags.
586589
link_command.extend(llbuild_link_args(self.args))

0 commit comments

Comments
 (0)