Skip to content

Commit

Permalink
Write "isSystem" and "isFramework" in explicit swift module map.
Browse files Browse the repository at this point in the history
Check module_context and write out "isSystem" and "isFramework" attributes to swift explicit module map if present.

PiperOrigin-RevId: 542029509
  • Loading branch information
Googler authored and swiple-rules-gardener committed Jun 20, 2023
1 parent faf98ee commit 1a44999
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swift/internal/explicit_module_map_file.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def write_explicit_swift_module_map_file(
module_description = {"moduleName": module_context.name}
if swift_context.swiftmodule:
module_description["modulePath"] = swift_context.swiftmodule.path
if module_context.is_system:
module_description["isSystem"] = module_context.is_system
if module_context.is_framework:
module_description["isFramework"] = module_context.is_framework
module_descriptions.append(module_description)

actions.write(
Expand Down

1 comment on commit 1a44999

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.