File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,25 @@ public final class TibsToolchain {
24
24
self . swiftc = swiftc
25
25
self . clang = clang
26
26
27
+ #if os(Windows)
28
+ let dylibFolder = " bin "
29
+ #else
30
+ let dylibFolder = " lib "
31
+ #endif
32
+
27
33
self . libIndexStore = libIndexStore ?? swiftc
28
34
. deletingLastPathComponent ( )
29
35
. deletingLastPathComponent ( )
30
- . appendingPathComponent ( " lib /libIndexStore.\( TibsToolchain . dylibExt) " , isDirectory: false )
36
+ . appendingPathComponent ( " \( dylibFolder ) /libIndexStore. \( TibsToolchain . dylibExt) " , isDirectory: false )
31
37
32
38
self . tibs = tibs
33
39
self . ninja = ninja
34
40
}
35
41
36
42
#if os(macOS)
37
43
public static let dylibExt = " dylib "
44
+ #elseif os(Windows)
45
+ public static let dylibExt = " dll "
38
46
#else
39
47
public static let dylibExt = " so "
40
48
#endif
You can’t perform that action at this time.
0 commit comments