11
11
//===----------------------------------------------------------------------===//
12
12
13
13
public import SWBUtil
14
- import SWBCore
14
+ public import SWBCore
15
15
import Foundation
16
16
17
17
@PluginExtensionSystemActor public func initializePlugin( _ manager: PluginManager ) {
@@ -22,10 +22,10 @@ import Foundation
22
22
manager. register ( WindowsSDKRegistryExtension ( ) , type: SDKRegistryExtensionPoint . self)
23
23
}
24
24
25
- final class WindowsPlugin : Sendable {
25
+ public final class WindowsPlugin : Sendable {
26
26
private let vsInstallations = AsyncSingleValueCache < [ VSInstallation ] , any Error > ( )
27
27
28
- func cachedVSInstallations( ) async throws -> [ VSInstallation ] {
28
+ public func cachedVSInstallations( ) async throws -> [ VSInstallation ] {
29
29
try await vsInstallations. value {
30
30
// Always pass localFS because this will be cached, and executes a process on the host system so there's no reason to pass in any proxy.
31
31
try await VSInstallation . findInstallations ( fs: localFS)
@@ -39,10 +39,10 @@ struct WindowsPlatformSpecsExtension: SpecificationsExtension {
39
39
}
40
40
}
41
41
42
- struct WindowsEnvironmentExtension : EnvironmentExtension {
43
- let plugin : WindowsPlugin
42
+ @ _spi ( Testing ) public struct WindowsEnvironmentExtension : EnvironmentExtension {
43
+ public let plugin : WindowsPlugin
44
44
45
- func additionalEnvironmentVariables( context: any EnvironmentExtensionAdditionalEnvironmentVariablesContext ) async throws -> [ String : String ] {
45
+ @ _spi ( Testing ) public func additionalEnvironmentVariables( context: any EnvironmentExtensionAdditionalEnvironmentVariablesContext ) async throws -> [ String : String ] {
46
46
if context. hostOperatingSystem == . windows {
47
47
// Add the environment variable for the MSVC toolset for Swift and Clang to find it
48
48
let vcToolsInstallDir = " VCToolsInstallDir "
0 commit comments