diff options
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_program.lua | 4 |
1 files changed, 3 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 6bd140b12..fd8908bdf 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua @@ -67,7 +67,9 @@ function sandbox_lib_detect_find_program._do_check(program, opt) local ok_or_errors ok, ok_or_errors = sandbox.load(opt.check, program) if ok then - ok = ok_or_errors + if ok_or_errors ~= nil then + ok = ok_or_errors + end else errors = ok_or_errors end |
