Skip to content

Commit 57b0196

Browse files
committed
Fix Process.findExecutable
1 parent ec7e1bf commit 57b0196

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/TSCBasic/Process.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,13 @@ public final class Process {
463463
if localFileSystem.isExecutableFile(abs) {
464464
return abs
465465
}
466+
#if os(Windows)
467+
if abs.extension != "exe",
468+
case let abs = abs.parentDirectory.appending(component: abs.basename + executableFileSuffix),
469+
localFileSystem.isExecutableFile(abs) {
470+
return abs
471+
}
472+
#endif
466473
}
467474
return nil
468475
}

0 commit comments

Comments
 (0)