diff options
| author | ruki <[email protected]> | 2020-03-10 23:00:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-10 12:01:11 +0800 |
| commit | f3d3ca766a2d6486de98ae6b492ec2ff2aa60657 (patch) | |
| tree | c2cc6fc35262c48fa3bc7960a872bdfde9e7b4e5 /xmake/modules | |
| parent | fb3610ea1dbfbb31cc05d7dc272fa0dd7c825893 (diff) | |
rewrite action/build
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/async/jobpool.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/async/jobpool.lua b/xmake/modules/private/async/jobpool.lua index 94b1e6a56..dc314ad08 100644 --- a/xmake/modules/private/async/jobpool.lua +++ b/xmake/modules/private/async/jobpool.lua @@ -44,6 +44,11 @@ function jobpool:newjob(name, run) return {name = name, run = run} end +-- get the last dependent job of the given job +function jobpool:lastdep(job) + return job._deps and job._deps:size() > 0 and job._deps:last() +end + -- add job to the given job node -- -- @param name the job name |
