@@ -254,8 +254,9 @@ def install_swiftdriver(args, build_dir, prefix, targets) :
254
254
255
255
# Binary Swift Modules:
256
256
# swift-driver: SwiftDriver.swiftmodule, SwiftOptions.swiftmodule
257
- # TODO: swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed)
258
257
# swift-tools-support-core: TSCUtility.swiftmodule, TSCLibc.swiftmodule, TSCBasic.swiftmodule
258
+ # swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed)
259
+ # swift-system: SystemPackage.swiftmodule
259
260
install_binary_swift_modules (args , build_dir , install_lib , targets )
260
261
261
262
# Modulemaps for C Modules:
@@ -333,10 +334,17 @@ def install_libraries(args, build_dir, universal_lib_dir, toolchain_lib_dir, tar
333
334
install_library (args , build_dir , package_subpath , lib ,
334
335
universal_lib_dir , toolchain_lib_dir , 'swift-tools-support-core' , targets )
335
336
337
+ # Instal the swift-system shared library into the toolchain lib
338
+ package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-system' )
339
+ install_library (args , build_dir , package_subpath , 'libSystemPackage' ,
340
+ universal_lib_dir , toolchain_lib_dir , 'swift-system' , targets )
341
+
342
+ # Instal the swift-argument-parser shared library into the toolchain lib
336
343
package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-argument-parser' )
337
344
install_library (args , build_dir , package_subpath , 'libArgumentParser' ,
338
345
universal_lib_dir , toolchain_lib_dir ,'swift-argument-parser' , targets )
339
346
347
+ # Instal the llbuild core shared libraries into the toolchain lib
340
348
package_subpath = os .path .join (args .configuration , 'dependencies' , 'llbuild' )
341
349
for lib in ['libllbuildSwift' , 'libllbuild' ]:
342
350
install_library (args , build_dir , package_subpath , lib ,
@@ -377,6 +385,12 @@ def install_binary_swift_modules(args, build_dir, toolchain_lib_dir, targets):
377
385
product_subpath )
378
386
install_module (args , build_dir , package_subpath , toolchain_lib_dir , 'ArgumentParser' , targets )
379
387
388
+ # swift-system
389
+ package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-system' ,
390
+ product_subpath )
391
+ install_module (args , build_dir , package_subpath , toolchain_lib_dir , 'SystemPackage' , targets )
392
+
393
+
380
394
# Install the modulemaps and headers of the driver's C module dependencies into the toolchain
381
395
# include directory
382
396
def install_c_module_includes (args , build_dir , toolchain_include_dir ):
0 commit comments