summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/has_flags.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
-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