summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/has_flags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-24 00:32:57 +0800
committerruki <[email protected]>2019-05-23 21:17:42 +0800
commit2c755e614870c558c5bd84e01379c1307beac609 (patch)
treef67c9bf758697c970693ebc7d20d6611bef603d0 /xmake/modules/lib/detect/has_flags.lua
parent268bfa979437845ea94db67a40a6c29b0d4b19be (diff)
improve cl.lua
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 84629fc93..d409e4217 100644
--- a/xmake/modules/lib/detect/has_flags.lua
+++ b/xmake/modules/lib/detect/has_flags.lua
@@ -120,8 +120,8 @@ function main(name, flags, opt)
cprint("${dim}> %s %s", path.filename(tool.program), table.concat(checkflags, " "))
end
end
- if errors and #errors > 0 and option.get("diagnosis") then
- cprint("${color.warning}checkinfo:${clear dim} %s", errors:trim())
+ if errors and option.get("diagnosis") and #tostring(errors) > 0 then
+ cprint("${color.warning}checkinfo:${clear dim} %s", tostring(errors):trim())
end
-- save result to cache