summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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