diff options
| author | ruki <[email protected]> | 2017-03-31 23:04:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-31 23:04:53 +0800 |
| commit | d819b361e585103bfc1fd95db8e0bdd322f59f71 (patch) | |
| tree | a657d6a6e7a760f9365e2df927ba5d6115066f3a | |
| parent | a674372c81fd25332bfe9a0125f0014650dd22b6 (diff) | |
disable show checking toolchains info in default
| -rw-r--r-- | xmake/platforms/checker.lua | 11 |
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 |
