Skip to content

Commit b0e257d

Browse files
authored
Bazel 7: Set framework_includes in import_middleman (#877)
1 parent b8e53c6 commit b0e257d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rules/import_middleman.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,15 @@ def _file_collector_rule_impl(ctx):
269269
cc_info = None
270270
if is_bazel_7:
271271
cc_info = CcInfo(
272+
compilation_context = cc_common.create_compilation_context(
273+
framework_includes = depset(
274+
transitive = [
275+
dep[CcInfo].compilation_context.framework_includes
276+
for dep in ctx.attr.deps
277+
if CcInfo in dep
278+
],
279+
),
280+
),
272281
linking_context = cc_common.create_linking_context(
273282
linker_inputs = depset([
274283
cc_common.create_linker_input(

0 commit comments

Comments
 (0)