From 4de6d0fcc5ddbde041c32e487a29068b162791c3 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 24 May 2019 00:35:03 +0800 Subject: fix show cl warnings --- xmake/modules/core/tools/cl.lua | 3 +-- 1 file changed, 1 insertion(+), 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 - -- cgit v1.3.1