diff options
| -rw-r--r-- | xmake/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua index 55fa150d2..7dd1e6e6c 100644 --- a/xmake/tools/gcc.lua +++ b/xmake/tools/gcc.lua @@ -327,7 +327,7 @@ function _compile1(sourcefile, objectfile, incdepfile, flags) local errinfos = nil local warnings = nil for _, errline in ipairs(errors:split('\n')) do - if errinfos or errline:find("%serror:") then + if errinfos or errline:find("%serror:") or errline:find("错误") then errinfos = errinfos or {} table.insert(errinfos, errline) else |
