From 3379ab5a5cdd2a607afd8a65a20aecb56fbca81f Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 23 Apr 2025 23:16:17 +0800 Subject: improve to find windbg --- xmake/modules/detect/tools/find_windbg.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/modules/detect/tools/find_windbg.lua b/xmake/modules/detect/tools/find_windbg.lua index 675b2aff3..85fc61d03 100644 --- a/xmake/modules/detect/tools/find_windbg.lua +++ b/xmake/modules/detect/tools/find_windbg.lua @@ -53,5 +53,9 @@ function main(opt) opt.check = opt.check or function (program) if not os.isfile(program) then raise() end end -- find program - return find_program(opt.program or "windbg", opt) + local program = find_program(opt.program or "windbg", opt) + if not program then + program = find_program("windbgx", opt) + end + return program end -- cgit v1.3.1