@@ -250,7 +250,6 @@ def install_swiftdriver(args, build_dir, prefix, targets) :
250
250
# swift-driver: SwiftDriver.swiftmodule, SwiftOptions.swiftmodule
251
251
# swift-tools-support-core: TSCUtility.swiftmodule, TSCBasic.swiftmodule
252
252
# swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed)
253
- # swift-system: SystemPackage.swiftmodule
254
253
install_binary_swift_modules (args , build_dir , install_lib , targets )
255
254
256
255
# Modulemaps for C Modules:
@@ -327,11 +326,6 @@ def install_libraries(args, build_dir, universal_lib_dir, toolchain_lib_dir, tar
327
326
install_library (args , build_dir , package_subpath , lib , shared_lib_ext ,
328
327
universal_lib_dir , toolchain_lib_dir , 'swift-tools-support-core' , targets )
329
328
330
- # Install the swift-system shared library into the toolchain lib
331
- package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-system' )
332
- install_library (args , build_dir , package_subpath , 'libSystemPackage' , shared_lib_ext ,
333
- universal_lib_dir , toolchain_lib_dir , 'swift-system' , targets )
334
-
335
329
# Install the swift-argument-parser shared libraries into the toolchain lib
336
330
package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-argument-parser' )
337
331
for (lib , ext ) in [('libArgumentParser' , shared_lib_ext ), ('libArgumentParserToolInfo' , static_lib_ext )]:
@@ -379,11 +373,6 @@ def install_binary_swift_modules(args, build_dir, toolchain_lib_dir, targets):
379
373
product_subpath )
380
374
install_module (args , build_dir , package_subpath , toolchain_lib_dir , 'ArgumentParser' , targets )
381
375
382
- # swift-system
383
- package_subpath = os .path .join (args .configuration , 'dependencies' , 'swift-system' ,
384
- product_subpath )
385
- install_module (args , build_dir , package_subpath , toolchain_lib_dir , 'SystemPackage' , targets )
386
-
387
376
388
377
# Install the modulemaps and headers of the driver's C module dependencies into the toolchain
389
378
# include directory
@@ -449,9 +438,6 @@ def build_using_cmake(args, toolchain_bin, build_dir, targets):
449
438
# LLBuild
450
439
build_llbuild_using_cmake (args , target , swiftc_exec , dependencies_dir ,
451
440
base_cmake_flags , swift_flags )
452
- # SwiftSystem
453
- build_system_using_cmake (args , target , swiftc_exec , dependencies_dir ,
454
- base_cmake_flags , swift_flags )
455
441
456
442
# TSC
457
443
build_tsc_using_cmake (args , target , swiftc_exec , dependencies_dir ,
@@ -492,24 +478,11 @@ def build_llbuild_using_cmake(args, target, swiftc_exec, build_dir, base_cmake_f
492
478
cmake_build (args , swiftc_exec , llbuild_cmake_flags , llbuild_swift_flags ,
493
479
llbuild_source_dir , llbuild_build_dir , 'products/all' )
494
480
495
- def build_system_using_cmake (args , target , swiftc_exec , build_dir , base_cmake_flags , swift_flags ):
496
- print ('Building Swift Driver dependency: Swift System' )
497
- system_source_dir = os .path .join (os .path .dirname (args .package_path ), 'swift-system' )
498
- system_build_dir = os .path .join (build_dir , 'swift-system' )
499
- flags = [
500
- # required due to swift-autolink-extract bug ("The file was not recognized as a valid object file")
501
- "-DBUILD_SHARED_LIBS=YES" ]
502
- system_cmake_flags = base_cmake_flags + flags
503
- system_swift_flags = swift_flags [:]
504
- cmake_build (args , swiftc_exec , system_cmake_flags , system_swift_flags ,
505
- system_source_dir , system_build_dir )
506
-
507
481
def build_tsc_using_cmake (args , target , swiftc_exec , build_dir , base_cmake_flags , swift_flags ):
508
482
print ('Building Swift Driver dependency: TSC' )
509
483
tsc_source_dir = os .path .join (os .path .dirname (args .package_path ), 'swift-tools-support-core' )
510
484
tsc_build_dir = os .path .join (build_dir , 'swift-tools-support-core' )
511
- flags = [
512
- '-DSwiftSystem_DIR=' + os .path .join (os .path .join (build_dir , 'swift-system' ), 'cmake/modules' )]
485
+ flags = []
513
486
tsc_cmake_flags = base_cmake_flags + flags
514
487
515
488
tsc_swift_flags = swift_flags [:]
@@ -557,8 +530,7 @@ def build_swift_driver_using_cmake(args, target, swiftc_exec, build_dir, base_cm
557
530
'-DLLBuild_DIR=' + os .path .join (os .path .join (dependencies_dir , 'llbuild' ), 'cmake/modules' ),
558
531
'-DTSC_DIR=' + os .path .join (os .path .join (dependencies_dir , 'swift-tools-support-core' ), 'cmake/modules' ),
559
532
'-DYams_DIR=' + os .path .join (os .path .join (dependencies_dir , 'yams' ), 'cmake/modules' ),
560
- '-DArgumentParser_DIR=' + os .path .join (os .path .join (dependencies_dir , 'swift-argument-parser' ), 'cmake/modules' ),
561
- '-DSwiftSystem_DIR=' + os .path .join (os .path .join (dependencies_dir , 'swift-system' ), 'cmake/modules' )]
533
+ '-DArgumentParser_DIR=' + os .path .join (os .path .join (dependencies_dir , 'swift-argument-parser' ), 'cmake/modules' )]
562
534
driver_cmake_flags = base_cmake_flags + flags
563
535
cmake_build (args , swiftc_exec , driver_cmake_flags , driver_swift_flags ,
564
536
driver_source_dir , driver_build_dir )
0 commit comments