Skip to content

Commit 1e5cb78

Browse files
authored
Expose platformVersionProvider with @_spi(SwiftPMInternal) (#7819)
1 parent 3497e47 commit 1e5cb78

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Sources/Build/BuildPlan/BuildPlan+Test.swift

+7
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ import struct Basics.AbsolutePath
1616
import struct LLBuildManifest.TestDiscoveryTool
1717
import struct LLBuildManifest.TestEntryPointTool
1818
import struct PackageGraph.ModulesGraph
19+
20+
@_spi(SwiftPMInternal)
1921
import struct PackageGraph.ResolvedPackage
22+
23+
@_spi(SwiftPMInternal)
2024
import struct PackageGraph.ResolvedProduct
25+
26+
@_spi(SwiftPMInternal)
2127
import struct PackageGraph.ResolvedModule
28+
2229
import struct PackageModel.Sources
2330
import class PackageModel.SwiftModule
2431
import class PackageModel.Module

Sources/PackageGraph/Resolution/ResolvedModule.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ public struct ResolvedModule {
165165
/// The list of platforms that are supported by this module.
166166
public let supportedPlatforms: [SupportedPlatform]
167167

168-
private let platformVersionProvider: PlatformVersionProvider
168+
@_spi(SwiftPMInternal)
169+
public let platformVersionProvider: PlatformVersionProvider
169170

170171
/// Triple for which this resolved module should be compiled for.
171172
public package(set) var buildTriple: BuildTriple {

Sources/PackageGraph/Resolution/ResolvedPackage.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public struct ResolvedPackage {
5454
/// If the given package's source is a registry release, this provides additional metadata and signature information.
5555
public let registryMetadata: RegistryReleaseMetadata?
5656

57-
private let platformVersionProvider: PlatformVersionProvider
57+
@_spi(SwiftPMInternal)
58+
public let platformVersionProvider: PlatformVersionProvider
5859

5960
public init(
6061
underlying: Package,

Sources/PackageGraph/Resolution/ResolvedProduct.swift

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public struct ResolvedProduct {
4747
/// The list of platforms that are supported by this product.
4848
public let supportedPlatforms: [SupportedPlatform]
4949

50+
@_spi(SwiftPMInternal)
5051
public let platformVersionProvider: PlatformVersionProvider
5152

5253
/// Triple for which this resolved product should be compiled for.

0 commit comments

Comments
 (0)