18
18
"//swift/internal:action_names.bzl" ,
19
19
"SWIFT_ACTION_COMPILE_MODULE_INTERFACE" ,
20
20
)
21
- load (":action_config.bzl" , "ActionConfigInfo" , "ConfigResultInfo" , " add_arg" )
21
+ load (":action_config.bzl" , "ActionConfigInfo" , "add_arg" )
22
22
23
23
def compile_module_interface_action_configs ():
24
24
return [
@@ -41,32 +41,8 @@ def compile_module_interface_action_configs():
41
41
add_arg ("-compile-module-from-interface" ),
42
42
],
43
43
),
44
- ActionConfigInfo (
45
- actions = [SWIFT_ACTION_COMPILE_MODULE_INTERFACE ],
46
- configurators = [
47
- _dependencies_swiftmodules_configurator ,
48
- ],
49
- ),
50
44
]
51
45
52
46
def _emit_module_path_from_module_interface_configurator (prerequisites , args ):
53
47
"""Adds the `.swiftmodule` output path to the command line."""
54
48
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