Skip to content

Commit 776c5f2

Browse files
protobuf-github-botcomius
authored andcommitted
Replace the usage of cc_info.debug_context with _debug_context
This reduces the regression that would've been caused by direct Starlarkification. PiperOrigin-RevId: 788799519
1 parent 72abf95 commit 776c5f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bazel/private/cc_proto_support.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ def cc_proto_compile_and_link(ctx, deps, sources, headers, disallow_dynamic_libr
132132
if bazel_features.cc.protobuf_on_allowlist:
133133
debug_context = cc_common.merge_debug_context(
134134
[cc_common.create_debug_context(compilation_outputs)] +
135-
[dep[CcInfo].debug_context() for dep in deps if CcInfo in dep],
135+
[
136+
dep[CcInfo]._debug_context if hasattr(dep[CcInfo], "_debug_context") else dep[CcInfo].debug_context()
137+
for dep in deps
138+
if CcInfo in dep
139+
],
136140
)
137141
temps = compilation_outputs.temps()
138142

0 commit comments

Comments
 (0)