Skip to content

Commit 0cd3ff8

Browse files
authored
Add back limitation discussed in pitch
1 parent 9cc5cb9 commit 0cd3ff8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

proposals/0403-swiftpm-mixed-language-targets.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ Initial support for targets containing mixed language sources will have the
111111
following limitations:
112112
1. The target must be either a library or test target. Support for other types
113113
of targets is deferred until the use cases become clear.
114-
114+
1. If the target contains a custom module map, it cannot contain a submodule of
115+
the form `$(ModuleName).Swift`. This is because the package manager will
116+
synthesize an _extended_ module map that includes a submodule that
117+
modularizes the generated Swift interop header.
115118

116119
### Importing a mixed target
117120

@@ -453,6 +456,12 @@ There are several failure cases that may surface to end users:
453456
with mixed language sources are only supported for library and test
454457
targets.
455458
```
459+
- Attempting to build a mixed target containing a custom module map
460+
that contains a `$(MixedTargetName).Swift` submodule.
461+
```
462+
The target's module map may not contain a Swift submodule for the
463+
module \(target name).
464+
```
456465

457466
### Testing
458467

0 commit comments

Comments
 (0)