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? {
82
82
83
83
// When building using 'swift test'
84
84
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) " )
87
94
if fileExists ( at: clientPlugin) && fileExists ( at: servicePlugin) {
88
95
return PluginPaths ( clientPlugin: clientPlugin, servicePlugin: servicePlugin)
89
96
}
You can’t perform that action at this time.
0 commit comments