From 59915ecb57087fa2b99edeea52ccfc4ed89804fe Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 15 Jan 2026 23:24:02 +0800 Subject: fix has_flags --- xmake/modules/lib/detect/has_flags.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xmake/modules/lib/detect/has_flags.lua') diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua index 36409ef84..8ac8e3385 100644 --- a/xmake/modules/lib/detect/has_flags.lua +++ b/xmake/modules/lib/detect/has_flags.lua @@ -138,9 +138,7 @@ function main(name, flags, opt) -- trace if option.get("verbose") or option.get("diagnosis") or opt.verbose then - cprintf("${dim}checking for flags (") - io.write(opt.flagskey) - cprint("${dim}) ... %s", result and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + cprint("${dim}checking for flags (%s) ... %s", opt.flagskey, 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, "\" \"")) if errors and #tostring(errors) > 0 then -- cgit v1.3.1