diff options
| author | ruki <[email protected]> | 2019-05-24 00:35:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-23 21:30:20 +0800 |
| commit | 4de6d0fcc5ddbde041c32e487a29068b162791c3 (patch) | |
| tree | 3c3fcdcab276c4a69d62e9da746f21103462bf5c | |
| parent | 2c755e614870c558c5bd84e01379c1307beac609 (diff) | |
fix show cl warnings
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index b89b7b424..99c9b982f 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -431,7 +431,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) if #output:trim() > 0 then local lines = {} for _, line in ipairs(output:split("\r\n")) do - if not _include_note(self, line) then + if line:match("warning %a+[0-9]+%s*:") then table.insert(lines, line) end end @@ -472,4 +472,3 @@ function compile(self, sourcefiles, objectfile, dependinfo, flags) _compile1(self, sourcefiles, objectfile, dependinfo, flags) end - |
