summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-17 00:45:25 +0800
committerruki <[email protected]>2022-05-17 00:45:25 +0800
commit61719b2242a0ea7f0bc263b4012f02b8f5daf216 (patch)
tree0b2524ebcae68b8fe273869d080cbdd4c5260888 /xmake/modules/core/tools/gcc.lua
parent7da97c871974089e3ada1baad9544599f14bd423 (diff)
improve gcc/cl
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
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()})