summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-19 22:20:15 +0800
committerruki <[email protected]>2022-06-19 22:20:20 +0800
commitec26291e8e26310e8e5d57e2c39fbabeaeff8c22 (patch)
tree84d7d96cc8b1e710df9ca07a398e40c4e2e938cc /xmake/modules/private/cache/build_cache.lua
parentececb79202f2bcc91ee14de8abc2db0ae58931b0 (diff)
fix distcc cache
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
-rw-r--r--xmake/modules/private/cache/build_cache.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index be336dc52..13bebcbdf 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -200,7 +200,7 @@ function build(program, argv, opt)
os.cp(objectfile_cached, cppinfo.objectfile)
-- we need get outdata/errdata to show warnings,
-- @see https://github.com/xmake-io/xmake/issues/2452
- if os.isfile(objectfile_infofile) then
+ if objectfile_infofile and os.isfile(objectfile_infofile) then
local extrainfo = io.load(objectfile_infofile)
cppinfo.outdata = extrainfo.outdata
cppinfo.errdata = extrainfo.errdata