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