Skip to content

Commit ad4b7ef

Browse files
authored
Merge pull request #2352 from compnerd/staging-paths
build: add support for new build layout for libdispatch
2 parents 21c8488 + d364579 commit ad4b7ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Utilities/bootstrap

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class Target(object):
264264
import_paths.append(os.path.join(args.libdispatch_build_dir, 'lib'))
265265
import_paths.append(os.path.join(args.libdispatch_build_dir, "src"))
266266
import_paths.append(os.path.join(args.libdispatch_build_dir, "src", "swift"))
267+
import_paths.append(os.path.join(args.libdispatch_build_dir, "src", "swift", "swift"))
267268
if args.libdispatch_source_dir:
268269
import_paths.append(args.libdispatch_source_dir)
269270
if args.xctest_path:
@@ -1205,7 +1206,14 @@ def main():
12051206

12061207
# Add swiftmodules.
12071208
for module_file in ["Dispatch.swiftmodule", "Dispatch.swiftdoc"]:
1208-
symlink_force(os.path.join(args.libdispatch_build_dir, 'src', 'swift', module_file), libincludedir)
1209+
paths = [
1210+
os.path.join(args.libdispatch_build_dir, 'src', 'swift', 'swift', module_file),
1211+
os.path.join(args.libdispatch_build_dir, 'src', 'swift', module_file),
1212+
]
1213+
for path in paths:
1214+
if os.path.exists(path):
1215+
symlink_force(path, libincludedir)
1216+
continue
12091217

12101218
symlink_force(os.path.join(args.libdispatch_source_dir), os.path.join(libincludedir, "dispatch"))
12111219

0 commit comments

Comments
 (0)