summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_ninja.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-18 22:41:11 +0800
committerruki <[email protected]>2025-09-18 22:41:11 +0800
commit7e3c48b59afbbb53a58951d81413cd438553ad05 (patch)
tree6dac695956c1caa4a4f30b69f04e8ce75e670674 /xmake/modules/detect/tools/find_ninja.lua
parent44812793dd6e8c9cae32bf8517d516709e91b3db (diff)
improve has_flags
Diffstat (limited to 'xmake/modules/detect/tools/find_ninja.lua')
-rw-r--r--xmake/modules/detect/tools/find_ninja.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_ninja.lua b/xmake/modules/detect/tools/find_ninja.lua
index 4a03d9e41..06b95f24c 100644
--- a/xmake/modules/detect/tools/find_ninja.lua
+++ b/xmake/modules/detect/tools/find_ninja.lua
@@ -40,6 +40,7 @@ function main(opt)
-- find program
opt = opt or {}
+ opt.norunfile = true
local program = find_program(opt.program or "ninja", opt)
if not program and is_host("windows") then
local msvc = toolchain.load("msvc", {plat = os.host(), arch = os.arch()})