Commit 8fb3f68
authored
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://1360830811 parent 3c71e00 commit 8fb3f68
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
0 commit comments