diff options
| author | ruki <[email protected]> | 2022-05-14 00:41:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-14 00:41:39 +0800 |
| commit | 1d7e2f54f9da78e6e2d40f2f4f0510755bddf439 (patch) | |
| tree | 28c8719baceb5d66e709de198fe2eb1bfebb9a59 /xmake/actions/build/build.lua | |
| parent | 2ff45f35b6e2c68ef4e9b84374e46bd8a204d4d2 (diff) | |
get distcc
Diffstat (limited to 'xmake/actions/build/build.lua')
| -rw-r--r-- | xmake/actions/build/build.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/actions/build/build.lua b/xmake/actions/build/build.lua index 598d4b2cf..4b86dd538 100644 --- a/xmake/actions/build/build.lua +++ b/xmake/actions/build/build.lua @@ -26,6 +26,8 @@ import("private.async.jobpool") import("private.async.runjobs") import("private.utils.batchcmds") import("core.base.hashset") +import("private.service.client_config") +import("private.service.distcc_build.client", {alias = "distcc_build_client"}) -- clean target for rebuilding function _clean_target(target) @@ -237,6 +239,13 @@ end -- the main entry function main(targetname, group_pattern) + -- enable distcc? + local distcc + if distcc_build_client.is_connected() then + client_config.load() + distcc = distcc_build_client.singleton() + end + -- build all jobs local batchjobs = get_batchjobs(targetname, group_pattern) if batchjobs and batchjobs:size() > 0 then @@ -246,7 +255,7 @@ function main(targetname, group_pattern) if errors and progress.showing_without_scroll() then print("") end - end, curdir = curdir, count_as_index = true}) + end, curdir = curdir, count_as_index = true, distcc = distcc}) os.cd(curdir) end end |
