summaryrefslogtreecommitdiff
path: root/xmake/actions/build/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-07 22:17:48 +0800
committerruki <[email protected]>2016-06-07 22:17:48 +0800
commit1cbfdb2503e78ace177846b09eecc79bf5810832 (patch)
tree84d67bc91412c01950b28d253cb64b0ccdc49b55 /xmake/actions/build/builder.lua
parent9bd25eacb780c89b0cf9968160e21399ef3872a5 (diff)
fix ccache option bug
Diffstat (limited to 'xmake/actions/build/builder.lua')
-rwxr-xr-xxmake/actions/build/builder.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/actions/build/builder.lua b/xmake/actions/build/builder.lua
index bec34df86..d6c2c3614 100755
--- a/xmake/actions/build/builder.lua
+++ b/xmake/actions/build/builder.lua
@@ -92,8 +92,13 @@ function _build_object(target, index)
end
-- make command
- local ccache = tool.shellname("ccache")
local command = compiler.command(target, sourcefile, objectfile)
+
+ -- uses ccache
+ local ccache = nil
+ if config.get("ccache") then
+ ccache = tool.shellname("ccache")
+ end
if ccache then
command = ccache:append(command, " ")
end