Skip to content

Commit 9cc5cb9

Browse files
authored
Per review thread, add section about add. change to SPM
1 parent b6e2f8e commit 9cc5cb9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,18 @@ The below sample shows what this overlay file may look like:
370370
}
371371
```
372372

373+
### Additional changes to the package manager
374+
375+
It is the goal for mixed language targets to work on all platforms supported
376+
by the package manager. One obstacle to that is that the package manager,
377+
at the time of this proposal, does not invoke the build system with the
378+
flag needed to emit the interoperability header
379+
([code][should-emit-header]). This limitation is outdated and will be
380+
removed as part of this proposal.
381+
382+
See the related discussion [thread][swift-emit-header-fr] from the initial
383+
formal review.
384+
373385
### Related change to the Swift compiler
374386

375387
When the Swift compiler creates the generated interop header (via
@@ -529,3 +541,7 @@ listed in the Future Directions section as an area of future work.
529541
[`SwiftSetting.InteroperabilityMode`]: https://developer.apple.com/documentation/packagedescription/swiftsetting/interoperabilitymode
530542

531543
[swift-compiler-thread-fr]: https://forums.swift.org/t/se-0403-package-manager-mixed-language-target-support/66202/32
544+
545+
[should-emit-header]: https://github.com/apple/swift-package-manager/blob/6478e2724b8bf77856ff358cba5f59a4a62978bf/Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift#L732-L735
546+
547+
[swift-emit-header-fr]: https://forums.swift.org/t/se-0403-package-manager-mixed-language-target-support/66202/31

0 commit comments

Comments
 (0)