File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,22 @@ extension Toolchain {
152
152
self . sourcekitd = sourcekitdPath
153
153
foundAny = true
154
154
} else {
155
+ #if os(Windows)
156
+ let sourcekitdPath = binPath. appending ( component: " sourcekitdInProc \( dylibExt) " )
157
+ #else
155
158
let sourcekitdPath = libPath. appending ( component: " libsourcekitdInProc \( dylibExt) " )
159
+ #endif
156
160
if fs. isFile ( sourcekitdPath) {
157
161
self . sourcekitd = sourcekitdPath
158
162
foundAny = true
159
163
}
160
164
}
161
165
166
+ #if os(Windows)
167
+ let libIndexStore = binPath. appending ( components: " libIndexStore \( dylibExt) " )
168
+ #else
162
169
let libIndexStore = libPath. appending ( components: " libIndexStore \( dylibExt) " )
170
+ #endif
163
171
if fs. isFile ( libIndexStore) {
164
172
self . libIndexStore = libIndexStore
165
173
foundAny = true
You can’t perform that action at this time.
0 commit comments