From ec26291e8e26310e8e5d57e2c39fbabeaeff8c22 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Jun 2022 22:20:15 +0800 Subject: fix distcc cache --- xmake/modules/private/cache/build_cache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/private/cache/build_cache.lua') 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 -- cgit v1.3.1