You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow swift_cross_import_overlay to specify a disambiguating explicit module name for the declaring and/or bystanding module
This can be used if either of those targets exports multiple modules.
PiperOrigin-RevId: 665873940
(cherry picked from commit 8563c97)
Signed-off-by: Brentley Jones <[email protected]>
Declares a cross-import overlay that will be automatically added as a dependency
@@ -227,7 +228,9 @@ the future, this rule is not recommended for other widespread use.
227
228
| <aid="swift_cross_import_overlay-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
228
229
| <aid="swift_cross_import_overlay-deps"></a>deps | A non-empty list of targets representing modules that should be passed as dependencies when a target depends on both `declaring_module` and `bystanding_module`. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | required ||
229
230
| <aid="swift_cross_import_overlay-bystanding_module"></a>bystanding_module | A label for the target representing the second of the two modules (the other being `declaring_module`) that must be imported for the cross-import overlay modules to be imported. It is completely passive in the cross-import process, having no definition with or other association to either the declaring module or the cross-import modules. | <ahref="https://bazel.build/concepts/labels">Label</a> | required ||
231
+
| <aid="swift_cross_import_overlay-bystanding_module_name"></a>bystanding_module_name | The name of the bystanding module from the target specified by the `bystanding_module` attribute. This is inferred if `bystanding_module` only exports a single direct module; this name must be specified if `bystanding_module` exports more than one. | String | optional |`""`|
230
232
| <aid="swift_cross_import_overlay-declaring_module"></a>declaring_module | A label for the target representing the first of the two modules (the other being `bystanding_module`) that must be imported for the cross-import overlay modules to be imported. This is the module that contains the `.swiftcrossimport` overlay definition that connects it to the bystander and to the overlay modules. | <ahref="https://bazel.build/concepts/labels">Label</a> | required ||
233
+
| <aid="swift_cross_import_overlay-declaring_module_name"></a>declaring_module_name | The name of the declaring module from the target specified by the `declaring_module` attribute. This is inferred if `declaring_module` only exports a single direct module; this name must be specified if `declaring_module` exports more than one. | String | optional |`""`|
0 commit comments