From f3d3ca766a2d6486de98ae6b492ec2ff2aa60657 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 10 Mar 2020 23:00:11 +0800 Subject: rewrite action/build --- xmake/modules/private/async/jobpool.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/modules/private/async') 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 -- cgit v1.3.1