diff options
| author | ruki <[email protected]> | 2024-04-08 23:07:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-08 23:07:53 +0800 |
| commit | 61141e77032daef49cc9f627c1f833fcbb00eaba (patch) | |
| tree | c8efddcc75bdff21f64f52822b30b4b2966dd0fc /xmake/modules | |
| parent | 14f497e354aa9ec61f54e201d4db211da4d2086f (diff) | |
improve distcc
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/async/runjobs.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua index 1508a71d8..35f51a15a 100644 --- a/xmake/modules/async/runjobs.lua +++ b/xmake/modules/async/runjobs.lua @@ -192,23 +192,21 @@ function main(name, jobs, opt) local distccjob = false if not jobs_cb then - -- get free job - job = jobs:getfree() - if not job then - break - end - - -- TODO -- we can only continue to run the job with distcc if local jobs are full if distcc and index >= local_max then if job.distcc then distccjob = true else - job_pending = job break end end + -- get free job + job = jobs:getfree() + if not job then + break + end + -- get run function jobfunc = job.run jobname = job.name @@ -241,7 +239,6 @@ function main(name, jobs, opt) if job then jobs:remove(job) end - print("finished", jobname) end running_jobs_indices[i] = nil end, |
