From 8a69672e9b238c1e61870f2a71eef10c3287031a Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 29 Nov 2023 13:20:15 -0500 Subject: [PATCH] Rename the swift-testing entry point. 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. --- Sources/Build/BuildOperationBuildSystemDelegateHandler.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Build/BuildOperationBuildSystemDelegateHandler.swift b/Sources/Build/BuildOperationBuildSystemDelegateHandler.swift index e85b426274b..699309fdd0b 100644 --- a/Sources/Build/BuildOperationBuildSystemDelegateHandler.swift +++ b/Sources/Build/BuildOperationBuildSystemDelegateHandler.swift @@ -219,13 +219,13 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand { stream.send( #""" #if canImport(Testing) - @_spi(SwiftPackageManagerSupport) import Testing + import Testing #endif @main struct Runner { static func main() async { #if canImport(Testing) - await Testing.swiftPMEntryPoint() as Never + await Testing.__swiftPMEntryPoint() as Never #endif } }