summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-17 00:53:34 +0800
committerruki <[email protected]>2025-09-17 00:53:34 +0800
commit8f2b49d09f78829ebca18c910647421e3509c9b5 (patch)
tree9231ef9c49f5269626d7c66bebe54f1669ac9eed /xmake/modules/detect/tools/find_cl.lua
parent63c49fb4d349a51899a04a6de77e79623cfa43f1 (diff)
improve to find cl
Diffstat (limited to 'xmake/modules/detect/tools/find_cl.lua')
-rw-r--r--xmake/modules/detect/tools/find_cl.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/modules/detect/tools/find_cl.lua b/xmake/modules/detect/tools/find_cl.lua
index f7c970987..2e38cd71f 100644
--- a/xmake/modules/detect/tools/find_cl.lua
+++ b/xmake/modules/detect/tools/find_cl.lua
@@ -35,10 +35,9 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
-
- -- init options
- opt = opt or {}
- opt.check = opt.check or function (program)
+ opt = opt or {}
+ opt.norunfile = true
+ opt.check = opt.check or function (program)
local ok = try { function () os.runv(program, {}, {envs = opt.envs}); return true end }
if not ok then
-- @see https://github.com/xmake-io/xmake/issues/3057