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
Don't install the binary Swift module when building for Apple platforms (#837)
This modifies the CMake rules to stop installing binary .swiftmodule
files when building for Apple platforms.
### Motivation:
Apple platforms have a stable ABI and modules for those platforms should
instead use the textual .swiftinterface which is already installed by
CMake. The binary .swiftmodule permits access to
[SPI](https://github.com/swiftlang/swift-testing/blob/main/Documentation/SPI.md)
declarations from the testing library, and these are not intended to be
exposed in distribution builds. Although this PR only removes access to
these on macOS, since it's the only platform which has a textual
.swiftinterface currently, we intend to investigate ways to match this
behavior for other platforms in the future.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
Resolves rdar://136083081
0 commit comments