summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-16 19:41:17 +0300
committerSaikari <[email protected]>2026-02-16 19:41:17 +0300
commit56581ecfdc1fc6982a03b9575fb66c2821f8aedd (patch)
treed8382c0d54306301136e22ffd70d126cff1b4f36
parentf024c37ca77bec28ffa7377af56ae8f0b189a4b3 (diff)
retry
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_program.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
index 18abf37a2..6bd140b12 100644
--- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
+++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
@@ -43,7 +43,7 @@ function sandbox_lib_detect_find_program._do_check(program, opt)
-- do not attempt to run program? check it fastly
if opt.norun then
return os.isfile(program)
- elseif opt.norunfile and path.is_absolute(program) and os.isfile(program) then
+ elseif not opt.check and opt.norunfile and path.is_absolute(program) and os.isfile(program) then
return true
end