summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/tools/find_windbg.lua6
1 files changed, 5 insertions, 1 deletions
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