File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Tests/SwiftSourceKitPluginTests Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,15 @@ private func pluginPaths(relativeTo base: URL) -> PluginPaths? {
8282
8383 // When building using 'swift test'
8484 do {
85- let clientPlugin = base. appendingPathComponent ( " libSwiftSourceKitClientPlugin.dylib " )
86- let servicePlugin = base. appendingPathComponent ( " libSwiftSourceKitPlugin.dylib " )
85+ #if canImport(Darwin)
86+ let dylibExtension = " dylib "
87+ #elseif os(Windows)
88+ let dylibExtension = " dll "
89+ #else
90+ let dylibExtension = " so "
91+ #endif
92+ let clientPlugin = base. appendingPathComponent ( " libSwiftSourceKitClientPlugin. \( dylibExtension) " )
93+ let servicePlugin = base. appendingPathComponent ( " libSwiftSourceKitPlugin. \( dylibExtension) " )
8794 if fileExists ( at: clientPlugin) && fileExists ( at: servicePlugin) {
8895 return PluginPaths ( clientPlugin: clientPlugin, servicePlugin: servicePlugin)
8996 }
You can’t perform that action at this time.
0 commit comments