File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -145,21 +145,21 @@ extension Toolchain {
145
145
}
146
146
147
147
// If 'currentPlatform' is nil it's most likely an unknown linux flavor.
148
- let dylibExt = Platform . currentPlatform? . dynamicLibraryExtension ?? " so "
148
+ let dylibExt = Platform . currentPlatform? . dynamicLibraryExtension ?? " . so"
149
149
150
150
let sourcekitdPath = libPath. appending ( components: " sourcekitd.framework " , " sourcekitd " )
151
151
if fs. isFile ( sourcekitdPath) {
152
152
self . sourcekitd = sourcekitdPath
153
153
foundAny = true
154
154
} else {
155
- let sourcekitdPath = libPath. appending ( component: " libsourcekitdInProc. \( dylibExt) " )
155
+ let sourcekitdPath = libPath. appending ( component: " libsourcekitdInProc \( dylibExt) " )
156
156
if fs. isFile ( sourcekitdPath) {
157
157
self . sourcekitd = sourcekitdPath
158
158
foundAny = true
159
159
}
160
160
}
161
161
162
- let libIndexStore = libPath. appending ( components: " libIndexStore. \( dylibExt) " )
162
+ let libIndexStore = libPath. appending ( components: " libIndexStore \( dylibExt) " )
163
163
if fs. isFile ( libIndexStore) {
164
164
self . libIndexStore = libIndexStore
165
165
foundAny = true
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ extension Platform {
17
17
/// The file extension used for a dynamic library on this platform.
18
18
public var dynamicLibraryExtension : String {
19
19
switch self {
20
- case . darwin: return " dylib "
21
- case . linux, . android: return " so "
20
+ case . darwin: return " . dylib"
21
+ case . linux, . android: return " . so"
22
22
}
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -526,16 +526,16 @@ private func makeToolchain(
526
526
makeExec ( binPath. appending ( component: " swiftc " ) )
527
527
}
528
528
529
- let dylibExt = Platform . currentPlatform? . dynamicLibraryExtension ?? " so "
529
+ let dylibExt = Platform . currentPlatform? . dynamicLibraryExtension ?? " . so"
530
530
531
531
if sourcekitd {
532
532
try ! fs. createDirectory ( libPath. appending ( component: " sourcekitd.framework " ) )
533
533
try ! fs. writeFileContents ( libPath. appending ( components: " sourcekitd.framework " , " sourcekitd " ) , bytes: " " )
534
534
}
535
535
if sourcekitdInProc {
536
- try ! fs. writeFileContents ( libPath. appending ( component: " libsourcekitdInProc. \( dylibExt) " ) , bytes: " " )
536
+ try ! fs. writeFileContents ( libPath. appending ( component: " libsourcekitdInProc \( dylibExt) " ) , bytes: " " )
537
537
}
538
538
if libIndexStore {
539
- try ! fs. writeFileContents ( libPath. appending ( component: " libIndexStore. \( dylibExt) " ) , bytes: " " )
539
+ try ! fs. writeFileContents ( libPath. appending ( component: " libIndexStore \( dylibExt) " ) , bytes: " " )
540
540
}
541
541
}
You can’t perform that action at this time.
0 commit comments