summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
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