Skip to content

Commit ac56ae1

Browse files
Pass swiftc_inputs to swift_common.compile in compile_swift_protos_for_target (#1582)
Otherwise sandboxing/REB won’t see the inputs. Signed-off-by: Brentley Jones <[email protected]>
1 parent fa37216 commit ac56ae1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proto/swift_proto_utils.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def compile_swift_protos_for_target(
262262
unsupported_features = ctx.disabled_features,
263263
)
264264

265+
additional_inputs = getattr(ctx.files, "swiftc_inputs", [])
265266
swiftc_inputs = getattr(attr, "swiftc_inputs", [])
266267
copts = expand_locations(ctx, getattr(attr, "copts", []), swiftc_inputs)
267268
copts = expand_make_variables(ctx, copts, "copts")
@@ -272,6 +273,7 @@ def compile_swift_protos_for_target(
272273
include_dev_srch_paths = include_developer_search_paths(attr)
273274
compile_result = swift_common.compile(
274275
actions = ctx.actions,
276+
additional_inputs = additional_inputs,
275277
cc_infos = get_providers(compiler_deps, CcInfo),
276278
copts = ["-parse-as-library"] + copts,
277279
feature_configuration = feature_configuration,

0 commit comments

Comments
 (0)