summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2017-10-08 21:44:11 +0800
committerruki <[email protected]>2017-10-08 21:44:11 +0800
commit6a282c696b0d14b894b19c3c6df9f1431c70ea51 (patch)
treeb3ef760780bc561a1b1233da677d687602bfe6bf /xmake/modules/core
parentacba01c9e2984195657831609593149969bbf03e (diff)
add -w and --warning args
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 007ce26bb..91ee95eb6 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -447,7 +447,7 @@ function _compile1(self, sourcefile, objectfile, depinfo, flags)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and option.get("verbose") then
+ if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then
cprint("${yellow}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
end
end