summaryrefslogtreecommitdiff
path: root/xmake/actions/build/kinds/binary.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-11 00:51:25 +0800
committerruki <[email protected]>2021-05-11 10:28:37 +0800
commitcec2f889c5e9fa644b0b93c584b577b503b7bb2e (patch)
tree5b4a55d701e438605951b2bab6ecb3685fb51cca /xmake/actions/build/kinds/binary.lua
parent0b9b15fb9cd681831d3964474f5935e4e38e0e60 (diff)
improve jobpool:addjob
Diffstat (limited to 'xmake/actions/build/kinds/binary.lua')
-rw-r--r--xmake/actions/build/kinds/binary.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua
index bc4763fd6..0f2f8f96a 100644
--- a/xmake/actions/build/kinds/binary.lua
+++ b/xmake/actions/build/kinds/binary.lua
@@ -135,7 +135,7 @@ 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})
- end, rootjob)
+ end, {rootjob = rootjob, envs = target:pkgenvs()})
-- we need only return and depend the link job for each target,
-- so we can compile the source files for each target in parallel