@@ -74,6 +74,17 @@ module {module_name}.Swift {{
74
74
arguments = [args ],
75
75
)
76
76
77
+ return [
78
+ DefaultInfo (
79
+ files = depset ([ctx .outputs .destination ]),
80
+ ),
81
+ CcInfo (
82
+ compilation_context = cc_common .create_compilation_context (
83
+ headers = depset ([ctx .outputs .destination ]),
84
+ ),
85
+ ),
86
+ ]
87
+
77
88
extend_modulemap = rule (
78
89
implementation = _extend_modulemap_impl ,
79
90
attrs = {
@@ -961,6 +972,7 @@ def apple_library(
961
972
tags = _MANUAL ,
962
973
)
963
974
module_map = "%s.extended.modulemap" % name
975
+ swiftc_inputs .append (module_map )
964
976
965
977
# Note: this needs to go here, in order to virtualize the extended module
966
978
framework_vfs_overlay (
@@ -991,11 +1003,11 @@ def apple_library(
991
1003
"@build_bazel_rules_ios//:virtualize_frameworks" : framework_vfs_swift_copts ,
992
1004
"//conditions:default" : framework_vfs_swift_copts if enable_framework_vfs else [],
993
1005
}) + additional_swift_copts ,
994
- deps = deps + private_deps + private_dep_names + lib_names + select ({
1006
+ deps = deps + private_deps + private_dep_names + lib_names ,
1007
+ swiftc_inputs = swiftc_inputs + select ({
995
1008
"@build_bazel_rules_ios//:virtualize_frameworks" : [framework_vfs_overlay_name_swift ],
996
1009
"//conditions:default" : [framework_vfs_overlay_name_swift ] if enable_framework_vfs else [],
997
1010
}),
998
- swiftc_inputs = swiftc_inputs ,
999
1011
features = features + ["swift.no_generated_module_map" , "swift.use_pch_output_dir" ] + select ({
1000
1012
"@build_bazel_rules_ios//:virtualize_frameworks" : ["swift.vfsoverlay" ],
1001
1013
"//conditions:default" : [],
0 commit comments