summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-31 23:04:53 +0800
committerruki <[email protected]>2017-03-31 23:04:53 +0800
commitd819b361e585103bfc1fd95db8e0bdd322f59f71 (patch)
treea657d6a6e7a760f9365e2df927ba5d6115066f3a
parenta674372c81fd25332bfe9a0125f0014650dd22b6 (diff)
disable show checking toolchains info in default
-rw-r--r--xmake/platforms/checker.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/platforms/checker.lua b/xmake/platforms/checker.lua
index f578d6f8a..3e7bf7ba0 100644
--- a/xmake/platforms/checker.lua
+++ b/xmake/platforms/checker.lua
@@ -24,6 +24,7 @@
-- imports
import("core.tool.tool")
+import("core.base.option")
-- find the given tool
function _toolchain_check(config, toolkind, toolinfo)
@@ -95,10 +96,12 @@ function _toolchain_check(config, toolkind, toolinfo)
end
-- trace
- if toolpath then
- cprint("checking for %s (%s) ... ${green}%s", toolinfo.description, toolkind, path.filename(toolpath))
- else
- cprint("checking for %s (%s: ${red}%s${clear}) ... ${red}no", toolinfo.description, toolkind, name)
+ if option.get("verbose") then
+ if toolpath then
+ cprint("checking for %s (%s) ... ${green}%s", toolinfo.description, toolkind, path.filename(toolpath))
+ else
+ cprint("checking for %s (%s: ${red}%s${clear}) ... ${red}no", toolinfo.description, toolkind, name)
+ end
end
end