From 781655d66b896102fe3e86256ab0ebf22fec0a76 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 10 Jan 2026 20:10:33 +0800 Subject: improve to find midl #7192 --- xmake/modules/detect/tools/find_midl.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmake/modules/detect/tools/find_midl.lua b/xmake/modules/detect/tools/find_midl.lua index 35ff96f5f..d5ed1194f 100644 --- a/xmake/modules/detect/tools/find_midl.lua +++ b/xmake/modules/detect/tools/find_midl.lua @@ -39,6 +39,9 @@ function main(opt) opt.command = opt.command or "/confirm" opt.parse = opt.parse or function (output) return output:match("Version (%d+%.%d+%.%d+)%s") end + -- https://github.com/xmake-io/xmake/issues/7192 + opt.norunfile = true + local envs = opt.envs if envs and envs.WindowsSdkDir and envs.WindowsSDKVersion then local toolchain = opt.toolchain @@ -50,9 +53,8 @@ function main(opt) end end - local program = find_program(opt.program or "midl", opt) - local version = nil + local program = find_program(opt.program or "midl", opt) if program and opt and opt.version then version = find_programver(program, opt) end -- cgit v1.3.1