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
(cherry picked from commit 1a44999)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
Googler authored and brentleyjones committed Oct 14, 2024
1 parent fbf0830 commit 25e7c58
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 @@ -45,6 +45,10 @@ def write_explicit_swift_module_map_file(
}
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

0 comments on commit 25e7c58

Please sign in to comment.