summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-19 22:15:14 +0800
committerruki <[email protected]>2022-05-19 22:15:14 +0800
commit757251a0d8a993ceafe0a70eae723fdf44d27e9c (patch)
tree4cc532f2187fa02167c8abf6bec0d781ce7db217 /xmake/modules/core/tools/cl.lua
parentf70ee30b489fef9436425fbd30d72ffa5f955be1 (diff)
fix fallback
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 1d13a51bd..7c803ebeb 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -470,7 +470,7 @@ function _compile(self, sourcefile, objectfile, compflags, opt)
preprocess = _preprocess, tool = self, target = opt.target})
elseif build_cache.is_enabled() and build_cache.is_supported(self:kind()) then
local program, argv = compargv(self, sourcefile, objectfile, compflags, table.join(opt, {rawargs = true}))
- local cppinfo = _preprocess(program, argv, {envs = self:runenvs(), target = opt.target})
+ cppinfo = _preprocess(program, argv, {envs = self:runenvs(), target = opt.target})
if cppinfo then
local cachekey
cachekey = build_cache.cachekey(program, cppinfo.cppfile, cppinfo.cppflags, self:runenvs())