https://github.com/Da-Viper created https://github.com/llvm/llvm-project/pull/126903
Fixes #120839 >From 253ce7d35c15022220606391eb4242fe3b32734c Mon Sep 17 00:00:00 2001 From: Ezike Ebuka <yerimy...@gmail.com> Date: Wed, 12 Feb 2025 12:38:31 +0000 Subject: [PATCH] [lldb-dap] Fix: compare with the string instead of promise. --- lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts index 55c2f3e9f7deb..7607053041c8c 100644 --- a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts +++ b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts @@ -50,13 +50,13 @@ async function findDAPExecutable(): Promise<string | undefined> { const executable = process.platform === "win32" ? "lldb-dap.exe" : "lldb-dap"; // Prefer lldb-dap from Xcode on Darwin. - const xcrun_dap = findWithXcrun(executable); + const xcrun_dap = await findWithXcrun(executable); if (xcrun_dap) { return xcrun_dap; } // Find lldb-dap in the user's path. - const path_dap = findInPath(executable); + const path_dap = await findInPath(executable); if (path_dap) { return path_dap; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits