@@ -264,6 +264,7 @@ class Target(object):
264
264
import_paths .append (os .path .join (args .libdispatch_build_dir , 'lib' ))
265
265
import_paths .append (os .path .join (args .libdispatch_build_dir , "src" ))
266
266
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" ))
267
268
if args .libdispatch_source_dir :
268
269
import_paths .append (args .libdispatch_source_dir )
269
270
if args .xctest_path :
@@ -1205,7 +1206,14 @@ def main():
1205
1206
1206
1207
# Add swiftmodules.
1207
1208
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
1209
1217
1210
1218
symlink_force (os .path .join (args .libdispatch_source_dir ), os .path .join (libincludedir , "dispatch" ))
1211
1219
0 commit comments