Skip to content

Commit

Permalink
Add direct_public_headers to CcInfo compilation_context
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron committed Aug 8, 2024
1 parent 6b3c965 commit 6f6093c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rules/framework.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,11 @@ def _apple_framework_packaging_impl(ctx):
objc_provider_utils.add_to_dict_if_present(compilation_context_fields, "headers", depset(
direct = outputs.headers + outputs.private_headers + outputs.modulemaps,
))
objc_provider_utils.add_to_dict_if_present(
compilation_context_fields,
"direct_public_headers",
outputs.headers + outputs.modulemaps,
)
objc_provider_utils.add_to_dict_if_present(compilation_context_fields, "defines", depset(
direct = [],
transitive = [getattr(cc_info.compilation_context, "defines") for cc_info in dep_cc_infos],
Expand Down
1 change: 1 addition & 0 deletions rules/framework/vfs_overlay.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def _framework_vfs_overlay_impl(ctx):
cc_info = CcInfo(
compilation_context = cc_common.create_compilation_context(
headers = headers,
direct_public_headers = [vfs.vfsoverlay_file],
),
)
return [
Expand Down

0 comments on commit 6f6093c

Please sign in to comment.