summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-18 00:11:54 +0800
committerruki <[email protected]>2017-05-18 00:11:54 +0800
commit4c2c8d70f8c067cd32be7e258871cafc4c7bdf7a (patch)
tree71f600c7a0ec9d3e5e83c954bae2e3be96a0cac1
parent5c161c7829aa1bd227a9fd3d254fb0ae2e680862 (diff)
find chinese error prefix for gcc
-rw-r--r--xmake/tools/gcc.lua2
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