summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-15 23:24:02 +0800
committerruki <[email protected]>2026-01-15 23:24:02 +0800
commit59915ecb57087fa2b99edeea52ccfc4ed89804fe (patch)
treef9ed35ebe2e5c2a6048db05eab0677ec53fc6768 /xmake/modules
parentb861a8bae087e0324ed77133b3e283a2c8dd1cc8 (diff)
fix has_flags
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/lib/detect/has_flags.lua4
1 files changed, 1 insertions, 3 deletions
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