summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-07 00:52:20 +0800
committerruki <[email protected]>2026-02-07 00:52:20 +0800
commit791292f2ee65a4ca8566c3e7a38cbcbf965ddd08 (patch)
treeb3d1bd6944c3e704828d904a0698fb8e44bf328d /xmake/core/base/os.lua
parent6007059c47a51d5847772fb68e357e4869ba85b3 (diff)
improve run policy and missing dll
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index ae730738e..d20cd671a 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -1020,6 +1020,9 @@ function os.execv(program, argv, opt)
local waitok, status = proc:wait(opt.timeout or -1)
if waitok > 0 then
ok = status
+ if ok and ok ~= 0 then
+ errors = process.get_exit_errors(filename, ok)
+ end
elseif waitok == 0 and opt.timeout then
proc:kill()
waitok, status = proc:wait(-1)
@@ -1093,7 +1096,7 @@ function os.iorunv(program, argv, opt)
if argv then
cmd = cmd .. " " .. os.args(argv)
end
- errors = string.format("cannot runv(%s), %s", cmd, errors and errors or "unknown reason")
+ errors = string.format("cannot runv(%s), %s", cmd, errors or "unknown reason")
end
-- get output and error data