1818 "//swift/internal:action_names.bzl" ,
1919 "SWIFT_ACTION_COMPILE_MODULE_INTERFACE" ,
2020)
21- load (":action_config.bzl" , "ActionConfigInfo" , "ConfigResultInfo" , " add_arg" )
21+ load (":action_config.bzl" , "ActionConfigInfo" , "add_arg" )
2222
2323def compile_module_interface_action_configs ():
2424 return [
@@ -41,32 +41,8 @@ def compile_module_interface_action_configs():
4141 add_arg ("-compile-module-from-interface" ),
4242 ],
4343 ),
44- ActionConfigInfo (
45- actions = [SWIFT_ACTION_COMPILE_MODULE_INTERFACE ],
46- configurators = [
47- _dependencies_swiftmodules_configurator ,
48- ],
49- ),
5044 ]
5145
5246def _emit_module_path_from_module_interface_configurator (prerequisites , args ):
5347 """Adds the `.swiftmodule` output path to the command line."""
5448 args .add ("-o" , prerequisites .swiftmodule_file )
55-
56- def _dependencies_swiftmodules_configurator (prerequisites ):
57- """Adds transitive swiftmodule dependencies as inputs for module interface compilation."""
58-
59- # For module interface compilation, we need access to dependency swiftinterface/swiftmodule files
60- # This ensures they are available in the sandbox
61- transitive_inputs = []
62- for module in prerequisites .transitive_modules :
63- swift_module = module .swift
64- if swift_module :
65- if swift_module .swiftmodule :
66- transitive_inputs .append (swift_module .swiftmodule )
67- if swift_module .swiftinterface :
68- transitive_inputs .append (swift_module .swiftinterface )
69-
70- return ConfigResultInfo (
71- inputs = transitive_inputs ,
72- )
0 commit comments