diff options
| author | ruki <[email protected]> | 2022-05-17 00:45:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-17 00:45:25 +0800 |
| commit | 61719b2242a0ea7f0bc263b4012f02b8f5daf216 (patch) | |
| tree | 0b2524ebcae68b8fe273869d080cbdd4c5260888 /xmake/modules/core | |
| parent | 7da97c871974089e3ada1baad9544599f14bd423 (diff) | |
improve gcc/cl
Diffstat (limited to 'xmake/modules/core')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index bdb3d350f..b6769860d 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -448,7 +448,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) -- use vstool to compile and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528 local program, argv = compargv(self, sourcefile, objectfile, compflags, opt) - if distcc_build_client.is_distccjob() then + if distcc_build_client.is_distccjob() and distcc_build_client.singleton():has_freejobs() then return distcc_build_client.singleton():iorunv(program, argv, {envs = self:runenvs(), tool = self}) else return vstool.iorunv(program, argv, {envs = self:runenvs()}) diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 523d5fc5e..553ed9fb6 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -457,7 +457,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) -- do compile local program, argv = compargv(self, sourcefile, objectfile, compflags) - if distcc_build_client.is_distccjob() then + if distcc_build_client.is_distccjob() and distcc_build_client.singleton():has_freejobs() then return distcc_build_client.singleton():iorunv(program, argv, {envs = self:runenvs(), tool = self}) else return os.iorunv(program, argv, {envs = self:runenvs()}) |
