diff options
| author | ruki <[email protected]> | 2018-11-04 22:20:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-04 22:20:13 +0800 |
| commit | d3d05b0c620dbfc318d4c693bc2fb7b556d51d3c (patch) | |
| tree | a91579ba8362498e531c01081d8fe80906da142d /xmake/modules/lib/detect/has_flags.lua | |
| parent | 9d22026291016915298cd4cf8b004bef4b6faaec (diff) | |
improve diagnosis info
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
| -rw-r--r-- | xmake/modules/lib/detect/has_flags.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua index 6398e62e6..66bdcfece 100644 --- a/xmake/modules/lib/detect/has_flags.lua +++ b/xmake/modules/lib/detect/has_flags.lua @@ -115,11 +115,11 @@ function main(name, flags, opt) _g._checking = nil -- trace - if option.get("verbose") or opt.verbose then + if option.get("verbose") or option.get("diagnosis") or opt.verbose then cprint("checking for the flags(%s) %s ... %s", path.filename(tool.program), table.concat(flags, " "), ifelse(result, "${green}ok", "${red}no")) - if errors and #errors > 0 then - cprint("${dim red}check error:${clear}${dim} %s", errors:trim()) - end + end + if errors and #errors > 0 and option.get("diagnosis") then + cprint("${yellow}checkinfo:${clear dim} %s", errors:trim()) end -- save result to cache |
