summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-10 20:50:58 +0800
committerruki <[email protected]>2015-06-10 20:50:58 +0800
commitb5815f7c047221ea4a85333f7a8b6be5a2a4c737 (patch)
treef53349989af5e057d77233d333ef5efc46d03ed3 /xmake/scripts/platform/linux
parent62f8e7581602d698a341db16257bd3d9304fa30d (diff)
modify the checking verbose info
Diffstat (limited to 'xmake/scripts/platform/linux')
-rw-r--r--xmake/scripts/platform/linux/prober.lua30
1 files changed, 11 insertions, 19 deletions
diff --git a/xmake/scripts/platform/linux/prober.lua b/xmake/scripts/platform/linux/prober.lua
index 70f877bb7..772c0ee66 100644
--- a/xmake/scripts/platform/linux/prober.lua
+++ b/xmake/scripts/platform/linux/prober.lua
@@ -44,6 +44,9 @@ function prober._probe_arch(configs)
-- init the default architecture
configs.set("arch", xmake._ARCH)
+ -- trace
+ utils.verbose("checking the architecture ... %s", configs.get("arch"))
+
-- ok
return true
end
@@ -72,6 +75,9 @@ function prober._probe_ccache(configs)
configs.set("ccache", false)
end
+ -- trace
+ utils.verbose("checking for the ccache ... %s", utils.ifelse(ccache_path, ccache_path, "no"))
+
-- ok
return true
end
@@ -80,16 +86,9 @@ end
function prober.config()
-- call all probe functions
- utils.call( prober
- , { "_probe_arch"
- , "_probe_ccache"}
-
- , function (name, result)
- -- trace
- utils.verbose("checking %s ...: %s", name:gsub("_probe_", ""), utils.ifelse(result, "ok", "no"))
- return result
- end
-
+ utils.call( { prober._probe_arch
+ , prober._probe_ccache}
+ , nil
, config)
end
@@ -97,15 +96,8 @@ end
function prober.global()
-- call all probe functions
- utils.call( prober
- , { "_probe_ccache"}
-
- , function (name, result)
- -- trace
- utils.verbose("checking %s ...: %s", name:gsub("_probe_", ""), utils.ifelse(result, "ok", "no"))
- return result
- end
-
+ utils.call( prober._probe_ccache
+ , nil
, global)
end