From b5815f7c047221ea4a85333f7a8b6be5a2a4c737 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 10 Jun 2015 20:50:58 +0800 Subject: modify the checking verbose info --- xmake/scripts/platform/android/prober.lua | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'xmake/scripts/platform/android/prober.lua') diff --git a/xmake/scripts/platform/android/prober.lua b/xmake/scripts/platform/android/prober.lua index d3840d812..5ecf1731b 100644 --- a/xmake/scripts/platform/android/prober.lua +++ b/xmake/scripts/platform/android/prober.lua @@ -44,6 +44,9 @@ function prober._probe_arch(configs) -- init the default architecture configs.set("arch", "armv7-a") + -- 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 @@ -98,15 +97,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 -- cgit v1.3.1