summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-27 09:43:17 +0800
committerGitHub <[email protected]>2023-11-27 09:43:17 +0800
commitead6c423b688c786b6dfc0ca448fc00a0c16860c (patch)
tree6aaa3bd0480b674c784848a6ec5eed55ec26d1d2
parent8865866a47f023f4b36453d25c75e876f503323d (diff)
parentdb928077f21341961eb49f3f0201f61fe2c4b914 (diff)
Merge pull request #4424 from ShifftC/dev
Fix runjobs
-rw-r--r--xmake/modules/async/runjobs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua
index 8812251ac..19090da5d 100644
--- a/xmake/modules/async/runjobs.lua
+++ b/xmake/modules/async/runjobs.lua
@@ -56,7 +56,7 @@ end
function main(name, jobs, opt)
-- init options
- op = opt or {}
+ opt = opt or {}
local total = opt.total or (type(jobs) == "table" and jobs:size()) or 1
local comax = opt.comax or math.min(total, 4)
local distcc = opt.distcc