summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-17 00:57:59 +0800
committerruki <[email protected]>2020-12-17 00:57:59 +0800
commit4c58aab66b51756f5b469a4fdbbaa645d51bb946 (patch)
tree546fead5bb7af1c813ae415705186d6a109cbcc2 /xmake/modules
parent70f4c91f86f69d721f79744466627f67c75bb242 (diff)
improve the build progress
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/async/runjobs.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/private/async/runjobs.lua b/xmake/modules/private/async/runjobs.lua
index 49c8e9115..98417f8ac 100644
--- a/xmake/modules/private/async/runjobs.lua
+++ b/xmake/modules/private/async/runjobs.lua
@@ -131,6 +131,8 @@ function main(name, jobs, opt)
-- run jobs
local index = 0
+ local count = 0
+ local count_as_index = opt.count_as_index
local priority_prev = 0
local priority_curr = 0
local job_pending = nil
@@ -185,7 +187,8 @@ function main(name, jobs, opt)
if opt.curdir then
os.cd(opt.curdir)
end
- jobfunc(i, total)
+ jobfunc(count_as_index and count or i, total)
+ count = count + 1
end
end,
catch