Skip to content

Commit 3fbde18

Browse files
Call out requirement to provide a modulemap for Swift imports
1 parent 40c804e commit 3fbde18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0482-swiftpm-static-library-binary-target-non-apple-platforms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ The additions are:
8181
* The `staticLibrary` artifact `type` that indicates this binary artifact is not an executable but rather a static library to link against.
8282
* The `headerPaths` field specifies directory paths relative to the root of the artifact bundle that contain the header interfaces to the static library.
8383
These are forwarded along to the swift compiler (or the C compiler) using the usual search path arguments.
84-
Each of these directories can optionally contain a `module.modulemap` file that will be used for importing the API into Swift code.
85-
* The optional `moduleMapPath` field specifies a custom module map to use if the header paths do not contain the module definitions or to provide custom overrides.
84+
* The optional `moduleMapPath` field specifies the path relative to the root of the artifact bundle that contains a custom module map to use if the header paths do not contain the module definitions or to provide custom overrides.
85+
This field is required if the library's API is to be imported into Swift code.
8686

8787
As with executable binary artifacts, the `path` field represents the relative path to the binary from the root of the artifact bundle,
8888
and the `supportedTriples` field provides information about the target triples supported by this variant.

0 commit comments

Comments
 (0)