Skip to content

Commit 605e228

Browse files
authored
package -> @_spi public due to package exportability rule updates (#7525)
The exportability rules around `package` access level are updated in a way that an `@_spi public` can't be bound to a `package` var, similar to how `@_spi public` can't be bound to a `public` var. For reference, see swiftlang/swift#73161. This PR corrects such use case.
1 parent 5abdf52 commit 605e228

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/PackageModel/SwiftSDKs/SwiftSDK.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public struct SwiftSDK: Equatable {
170170
}
171171

172172
/// Whether or not the receiver supports using XCTest.
173-
package let xctestSupport: XCTestSupport
173+
@_spi(SwiftPMInternal)
174+
public let xctestSupport: XCTestSupport
174175

175176
/// Root directory path of the SDK used to compile for the target triple.
176177
@available(*, deprecated, message: "use `pathsConfiguration.sdkRootPath` instead")

0 commit comments

Comments
 (0)