@@ -196,6 +196,7 @@ def compile_swift_protos_for_target(
196
196
additional_swift_proto_compiler_info ,
197
197
attr ,
198
198
ctx ,
199
+ exec_group = None ,
199
200
module_name ,
200
201
proto_infos ,
201
202
swift_proto_compilers ,
@@ -208,6 +209,8 @@ def compile_swift_protos_for_target(
208
209
additional_compiler_deps: Additional dependencies passed directly to the Swift compiler.
209
210
attr: The attributes of the target for which the module is being compiled.
210
211
ctx: The context of the aspect or rule.
212
+ exec_group: Runs the Swift compilation action under the given execution
213
+ group's context. If `None`, the default execution group is used.
211
214
module_name: The name of the Swift module that should be compiled from the protos.
212
215
proto_infos: List of `ProtoInfo` providers to compile into Swift source files.
213
216
swift_proto_compilers: List of targets propagating `SwiftProtoCompiler` providers.
@@ -276,6 +279,7 @@ def compile_swift_protos_for_target(
276
279
additional_inputs = additional_inputs ,
277
280
cc_infos = get_providers (compiler_deps , CcInfo ),
278
281
copts = ["-parse-as-library" ] + copts ,
282
+ exec_group = exec_group ,
279
283
feature_configuration = feature_configuration ,
280
284
include_dev_srch_paths = include_dev_srch_paths ,
281
285
module_name = module_name ,
0 commit comments