Skip to content

Commit 7d03e52

Browse files
authored
Rename the swift-testing entry point. (#7137)
This PR renames the entry point function used by SwiftPM to call into swift-testing such that it does not need to be SPI. By marking it SPI, we unintentionally made it very difficult to use with a toolchain that does not include private module information. swift-testing will continue to export the old symbol name as used by SwiftPM until this change has firmly landed in toolchains, after which we will remove the old function. See: swiftlang/swift-testing#141
1 parent 1b49341 commit 7d03e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Build/BuildOperationBuildSystemDelegateHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand {
219219
stream.send(
220220
#"""
221221
#if canImport(Testing)
222-
@_spi(SwiftPackageManagerSupport) import Testing
222+
import Testing
223223
#endif
224224
225225
@main struct Runner {
226226
static func main() async {
227227
#if canImport(Testing)
228-
await Testing.swiftPMEntryPoint() as Never
228+
await Testing.__swiftPMEntryPoint() as Never
229229
#endif
230230
}
231231
}

0 commit comments

Comments
 (0)