summaryrefslogtreecommitdiff
path: root/xmake/actions/build/kinds/binary.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-18 23:52:01 +0800
committerruki <[email protected]>2024-03-18 23:52:01 +0800
commit8f40dc67f661f46de7a073ea079587faebf0f1af (patch)
tree9a56acb9dac1c1b90c13fd34a8d59acf20a3150b /xmake/actions/build/kinds/binary.lua
parentca16db30058d8a512d73a7bee28e57f72de4c338 (diff)
use new progress
Diffstat (limited to 'xmake/actions/build/kinds/binary.lua')
-rw-r--r--xmake/actions/build/kinds/binary.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua
index dd14d5c95..2f5bad0fc 100644
--- a/xmake/actions/build/kinds/binary.lua
+++ b/xmake/actions/build/kinds/binary.lua
@@ -156,8 +156,8 @@ end
function main(batchjobs, rootjob, target)
-- add link job
- local job_link = batchjobs:addjob(target:name() .. "/link", function (index, total)
- _link_target(target, {progress = (index * 100) / total})
+ local job_link = batchjobs:addjob(target:name() .. "/link", function (index, total, opt)
+ _link_target(target, {progress = opt.progress})
end, {rootjob = rootjob})
-- we only need to return and depend the link job for each target,