From 960c3dc469aaa27746c0a2174f235bd32ce390ff Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 Feb 2019 22:42:08 +0800 Subject: improve check_xxx --- xmake/modules/lib/detect/check_cxsnippets.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmake/modules/lib') diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua index 3239996be..e44043b99 100644 --- a/xmake/modules/lib/detect/check_cxsnippets.lua +++ b/xmake/modules/lib/detect/check_cxsnippets.lua @@ -201,23 +201,23 @@ function main(snippets, opt) if opt.verbose or option.get("verbose") or option.get("diagnosis") then local kind = ifelse(sourcekind == "cc", "c", "c++") if #includes > 0 then - cprint("${dim}checking for the %s includes(%s) ... %s", kind, table.concat(includes, ", "), ok and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}> checking for the %s includes(%s)", kind, table.concat(includes, ", ")) end if #types > 0 then - cprint("${dim}checking for the %s types(%s) ... %s", kind, table.concat(types, ", "), ok and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}> checking for the %s types(%s)", kind, table.concat(types, ", ")) end if #funcs > 0 then - cprint("${dim}checking for the %s funcs(%s) ... %s", kind, table.concat(funcs, ", "), ok and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}> checking for the %s funcs(%s)", kind, table.concat(funcs, ", ")) end if #links > 0 then - cprint("${dim}checking for the %s links(%s) ... %s", kind, table.concat(links, ", "), ok and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}> checking for the %s links(%s)", kind, table.concat(links, ", ")) end for idx_or_name, snippet in pairs(snippets) do local name = idx_or_name if type(name) == "number" then name = snippet:sub(1, 16) end - cprint("${dim}checking for the %s snippet(%s) ... %s", kind, name, ok and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}> checking for the %s snippet(%s)", kind, name) end end if errors and #errors > 0 and option.get("diagnosis") then -- cgit v1.3.1