summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux/prober.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-10 11:10:25 +0800
committerruki <[email protected]>2015-06-10 11:10:25 +0800
commit177400e62e74d5ad3539573cfd3143cd19d3d30f (patch)
treeb6fa15adda822c3cb1d6b8c2967bb2c6690e572c /xmake/scripts/platform/linux/prober.lua
parent7a2f8c098db24b46c37ab0db79d6e511b1681a77 (diff)
add project menu
Diffstat (limited to 'xmake/scripts/platform/linux/prober.lua')
-rw-r--r--xmake/scripts/platform/linux/prober.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/xmake/scripts/platform/linux/prober.lua b/xmake/scripts/platform/linux/prober.lua
index 963cc440d..92f670394 100644
--- a/xmake/scripts/platform/linux/prober.lua
+++ b/xmake/scripts/platform/linux/prober.lua
@@ -49,14 +49,11 @@ end
-- probe the ccache
function prober._probe_ccache(configs)
- -- get the ccache mode
- local mode = configs.ccache
-
-- ok?
- if mode and mode == "y" and configs.__ccache then return true end
+ if configs.ccache and configs.__ccache then return true end
-- disable?
- if mode and mode == "n" then
+ if not configs.ccache then
configs.__ccache = nil
return true
end
@@ -66,10 +63,10 @@ function prober._probe_ccache(configs)
-- probe ok? update it
if ccache_path then
- configs.ccache = "y"
+ configs.ccache = true
configs.__ccache = ccache_path
else
- configs.ccache = "n"
+ configs.ccache = false
end
-- ok