@@ -640,8 +640,11 @@ function(_compile_swift_files
640
640
if (SWIFT_ENABLE_MODULE_INTERFACES )
641
641
set (interface_file "${module_base} .swiftinterface" )
642
642
set (interface_file_static "${module_base_static} .swiftinterface" )
643
+ set (private_interface_file "${module_base} .private.swiftinterface" )
644
+ set (private_interface_file_static "${module_base_static} .private.swiftinterface" )
643
645
list (APPEND swift_module_flags
644
- "-emit-module-interface-path" "${interface_file} " )
646
+ "-emit-module-interface-path" "${interface_file} "
647
+ "-emit-private-module-interface-path" "${private_interface_file} " )
645
648
endif ()
646
649
647
650
if (NOT SWIFTFILE_IS_STDLIB_CORE )
@@ -652,7 +655,7 @@ function(_compile_swift_files
652
655
set (module_outputs "${module_file} " "${module_doc_file} " )
653
656
654
657
if (interface_file )
655
- list (APPEND module_outputs "${interface_file} " )
658
+ list (APPEND module_outputs "${interface_file} " " ${private_interface_file} " )
656
659
endif ()
657
660
658
661
set (optional_arg )
@@ -720,8 +723,8 @@ function(_compile_swift_files
720
723
set (module_outputs "${module_file} " "${module_doc_file} " )
721
724
set (module_outputs_static "${module_file_static} " "${module_doc_file_static} " )
722
725
if (interface_file )
723
- list (APPEND module_outputs "${interface_file} " )
724
- list (APPEND module_outputs_static "${interface_file_static} " )
726
+ list (APPEND module_outputs "${interface_file} " " ${private_interface_file} " )
727
+ list (APPEND module_outputs_static "${interface_file_static} " " ${private_interface_file_static} " )
725
728
endif ()
726
729
727
730
swift_install_in_component (DIRECTORY "${specific_module_dir} "
0 commit comments