summaryrefslogtreecommitdiff
path: root/xmake/modules/lib
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 22:41:23 +0800
committerruki <[email protected]>2019-01-03 10:08:21 +0800
commit2c8d0f142deeb90f8e2d2ae7962abbc8a62790aa (patch)
tree5c74326301749db7ee0da5a2f0def3678ce39828 /xmake/modules/lib
parent21539005098febb08e7331e14cae59639c9a21fc (diff)
add status styles
Diffstat (limited to 'xmake/modules/lib')
-rw-r--r--xmake/modules/lib/detect/has_flags.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua
index 033574094..237a5fe69 100644
--- a/xmake/modules/lib/detect/has_flags.lua
+++ b/xmake/modules/lib/detect/has_flags.lua
@@ -119,13 +119,13 @@ function main(name, flags, opt)
-- trace
if option.get("verbose") or option.get("diagnosis") or opt.verbose then
- cprint("${dim}checking for the flags (%s) ... %s", table.concat(table.wrap(flags), " "), ifelse(result, "${green}ok", "${red}no"))
+ cprint("${dim}checking for the flags (%s) ... %s", table.concat(table.wrap(flags), " "), result and "${color.success}${text.success}" or "${color.nothing}${text.nothing}")
if option.get("diagnosis") then
cprint("${dim}> %s %s", path.filename(tool.program), table.concat(checkflags, " "))
end
end
if errors and #errors > 0 and option.get("diagnosis") then
- cprint("${yellow}checkinfo:${clear dim} %s", errors:trim())
+ cprint("${color.warning}checkinfo:${clear dim} %s", errors:trim())
end
-- save result to cache