diff options
| author | ruki <[email protected]> | 2020-03-08 15:22:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-08 15:22:53 +0800 |
| commit | 3f5723c632d0734ce3ea93e174cdf099eeefb543 (patch) | |
| tree | 0e5ca6181da9e57959b67df8b2471e0a7f2c64e1 | |
| parent | 82a72523912a398f367d4b19cf550ad8aaa1c8be (diff) | |
improve jobpool
| -rw-r--r-- | xmake/modules/private/async/jobpool.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/async/jobpool.lua b/xmake/modules/private/async/jobpool.lua index b0dc56454..07f651d11 100644 --- a/xmake/modules/private/async/jobpool.lua +++ b/xmake/modules/private/async/jobpool.lua @@ -103,9 +103,8 @@ function jobpool:_gentree(job) local tree = {job.name} local deps = job._deps if deps and not deps:empty() then - tree[2] = {} for dep in deps:items() do - table.insert(tree[2], self:_gentree(dep)) + table.insert(tree, self:_gentree(dep)) end end return tree |
