@@ -607,7 +607,7 @@ def check_and_sync(file_path, install_path):
607
607
fatal_error ("install failed with exit status %d" % (result ,))
608
608
609
609
610
- def install (build_dir , dylib_dir , swiftmodule_base_name , stdlib_rpath ):
610
+ def install (build_dir , dylib_dir , stdlib_rpath ):
611
611
for dylib_name in get_installed_dylib_names ():
612
612
613
613
dylib_path = os .path .join (build_dir , dylib_name )
@@ -621,15 +621,6 @@ def install(build_dir, dylib_dir, swiftmodule_base_name, stdlib_rpath):
621
621
file_path = dylib_path , install_path = os .path .join (dylib_dir , dylib_name )
622
622
)
623
623
624
- # Optionally install .swiftmodule
625
- if swiftmodule_base_name :
626
- module_path = os .path .join (build_dir , "SwiftSyntax.swiftmodule" )
627
- doc_path = os .path .join (build_dir , "SwiftSyntax.swiftdoc" )
628
- module_dest = swiftmodule_base_name + ".swiftmodule"
629
- doc_dest = swiftmodule_base_name + ".swiftdoc"
630
- check_and_sync (file_path = module_path , install_path = module_dest )
631
- check_and_sync (file_path = doc_path , install_path = doc_dest )
632
-
633
624
634
625
# -----------------------------------------------------------------------------
635
626
# Arugment Parsing
@@ -654,17 +645,6 @@ def install(build_dir, dylib_dir, swiftmodule_base_name, stdlib_rpath):
654
645
"""
655
646
656
647
657
- _SWIFTMODULE_BASE_NAME_HELP = """
658
- The name under which the Swift module should be installed. A .swiftdoc and
659
- .swiftmodule file extension will be added to this path and the corresponding
660
- files will be copied there.
661
-
662
- Example /path/to/SwiftSyntax.swiftmodule/x86_64 copies files to
663
- /path/to/SwiftSyntax.swiftmodule/x86_64.swiftmodule and
664
- /path/to/SwiftSyntax.swiftmodule/x86_64.swiftdoc
665
- """
666
-
667
-
668
648
def parse_args ():
669
649
parser = argparse .ArgumentParser (
670
650
formatter_class = argparse .RawDescriptionHelpFormatter , description = _DESCRIPTION
@@ -809,7 +789,6 @@ def main():
809
789
install (
810
790
build_dir = build_dir ,
811
791
dylib_dir = args .dylib_dir ,
812
- swiftmodule_base_name = args .swiftmodule_base_name ,
813
792
stdlib_rpath = stdlib_rpath ,
814
793
)
815
794
sys .exit (0 )
0 commit comments