summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.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/cl.lua
parent7da97c871974089e3ada1baad9544599f14bd423 (diff)
improve gcc/cl
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 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()})