File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,32 @@ where the arguments are:
48
48
When reading an existing ` SwiftInfo ` provider, it has the two fields described
49
49
below.
50
50
51
+ This provider has a custom initializer that will merge the transitive modules of
52
+ a list of ` SwiftInfo ` providers, rather than a separate "merge" function. The
53
+ correct signature when _ creating_ a new ` SwiftInfo ` provider is the following:
54
+
55
+ ``` build
56
+ SwiftInfo(
57
+ direct_swift_infos,
58
+ modules,
59
+ swift_infos,
60
+ )
61
+ ```
62
+
63
+ where the arguments are:
64
+
65
+ * ` direct_swift_infos ` : A list of ` SwiftInfo ` providers from dependencies
66
+ whose direct modules should be treated as direct modules in the resulting
67
+ provider, in addition to their transitive modules being merged.
68
+ * ` modules ` : A list of values (as returned by ` create_swift_module_context ` )
69
+ that represent Clang and/or Swift module artifacts that are direct outputs
70
+ of the target being built.
71
+ * ` swift_infos ` : A list of ` SwiftInfo ` providers from dependencies whose
72
+ transitive modules should be merged into the resulting provider.
73
+
74
+ When reading an existing ` SwiftInfo ` provider, it has the two fields described
75
+ below.
76
+
51
77
** FIELDS**
52
78
53
79
You can’t perform that action at this time.
0 commit comments