Skip to content

Commit 52cc3fe

Browse files
Use proper lldb path on Windows (#890)
1 parent fed2fd7 commit 52cc3fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/toolchain/toolchain.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ export class SwiftToolchain {
345345
* is not in macOS toolchain path
346346
*/
347347
public async getLLDB(): Promise<string> {
348-
let lldbPath = path.join(this.swiftFolderPath, "lldb");
348+
let lldbPath = path.join(
349+
this.swiftFolderPath,
350+
process.platform === "win32" ? "lldb.exe" : "lldb"
351+
);
349352
if (!(await pathExists(lldbPath))) {
350353
if (process.platform !== "darwin") {
351354
throw new Error("Failed to find LLDB in swift toolchain");

0 commit comments

Comments
 (0)