summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cparser.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-24 00:32:57 +0800
committerruki <[email protected]>2019-05-23 21:17:42 +0800
commit2c755e614870c558c5bd84e01379c1307beac609 (patch)
treef67c9bf758697c970693ebc7d20d6611bef603d0 /xmake/modules/core/tools/cparser.lua
parent268bfa979437845ea94db67a40a6c29b0d4b19be (diff)
improve cl.lua
Diffstat (limited to 'xmake/modules/core/tools/cparser.lua')
-rw-r--r--xmake/modules/core/tools/cparser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua
index 63ba9dfd8..ff143ae48 100644
--- a/xmake/modules/core/tools/cparser.lua
+++ b/xmake/modules/core/tools/cparser.lua
@@ -205,7 +205,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
os.tryrm(objectfile)
-- find the start line of error
- local lines = errors:split("\n")
+ local lines = tostring(errors):split("\n")
local start = 0
for index, line in ipairs(lines) do
if line:find("error:", 1, true) or line:find("错误:", 1, true) then