From 655c85185c411d3806c1a23609ff9c6394fad1dc Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 20 Jun 2023 13:21:34 -0700 Subject: [PATCH] Write "isSystem" and "isFramework" in explicit swift module map Check module_context and write out "isSystem" and "isFramework" attributes to swift explicit module map if present. PiperOrigin-RevId: 542029509 (cherry picked from commit 1a449995cee878c3f4ca1fcdc947579605e8bd0f) Signed-off-by: Brentley Jones --- swift/internal/explicit_module_map_file.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swift/internal/explicit_module_map_file.bzl b/swift/internal/explicit_module_map_file.bzl index e7aeb1756..3dd96b365 100644 --- a/swift/internal/explicit_module_map_file.bzl +++ b/swift/internal/explicit_module_map_file.bzl @@ -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(