summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-10 20:10:33 +0800
committerruki <[email protected]>2026-01-10 20:10:42 +0800
commit781655d66b896102fe3e86256ab0ebf22fec0a76 (patch)
tree0249954031c0c03dda772ecf55460936be23a636
parent85c60adb7938e0dc4793788dda2de8c9498e21f3 (diff)
improve to find midl #7192
-rw-r--r--xmake/modules/detect/tools/find_midl.lua6
1 files 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