diff options
| author | ruki <[email protected]> | 2017-10-08 21:44:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-10-08 21:44:11 +0800 |
| commit | 6a282c696b0d14b894b19c3c6df9f1431c70ea51 (patch) | |
| tree | b3ef760780bc561a1b1233da677d687602bfe6bf /xmake/modules/core | |
| parent | acba01c9e2984195657831609593149969bbf03e (diff) | |
add -w and --warning args
Diffstat (limited to 'xmake/modules/core')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
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 |
