File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -219,17 +219,19 @@ extension Location {
219
219
220
220
extension TibsToolchain {
221
221
public convenience init ( _ sktc: Toolchain ) {
222
+ let execExt : String = Platform . currentPlatform? . executableExtension ?? " "
223
+
222
224
let ninja : URL ?
223
225
if let ninjaPath = ProcessInfo . processInfo. environment [ " NINJA_BIN " ] {
224
226
ninja = URL ( fileURLWithPath: ninjaPath, isDirectory: false )
225
227
} else {
226
- ninja = findTool ( name: " ninja " )
228
+ ninja = findTool ( name: " ninja \( execExt ) " )
227
229
}
228
230
self . init (
229
231
swiftc: sktc. swiftc!. asURL,
230
232
clang: sktc. clang!. asURL,
231
233
libIndexStore: sktc. libIndexStore!. asURL,
232
- tibs: XCTestCase . productsDirectory. appendingPathComponent ( " tibs " , isDirectory: false ) ,
234
+ tibs: XCTestCase . productsDirectory. appendingPathComponent ( " tibs \( execExt ) " , isDirectory: false ) ,
233
235
ninja: ninja)
234
236
}
235
237
}
You can’t perform that action at this time.
0 commit comments