summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-04 22:41:25 +0800
committerruki <[email protected]>2019-06-04 10:08:31 +0800
commit18663d52e5ff484eea423f88cbf52cc10c5721f3 (patch)
tree3e1e147713b4ca50276b676b9b346f52f893708b /xmake/modules/core/tools/cl.lua
parent255d51be7e7ed10a13a4cd55b5aae55079ab4bb9 (diff)
improve string.split
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 99c9b982f..3859358d3 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -313,7 +313,7 @@ function _include_deps(self, outdata)
-- translate it
local results = {}
local uniques = {}
- for _, line in ipairs(outdata:split("\r\n")) do
+ for _, line in ipairs(outdata:split("\r\n", {plain = true})) do
-- get includefile
local includefile = _include_note(self, line)
@@ -410,7 +410,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
-- filter includes notes: "Note: including file: xxx.h", @note maybe not english language
local results = ""
- for _, line in ipairs(tostring(errors):split("\r\n")) do
+ for _, line in ipairs(tostring(errors):split("\r\n", {plain = true})) do
if not _include_note(self, line) then
results = results .. line .. "\r\n"
end
@@ -430,7 +430,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
end
if #output:trim() > 0 then
local lines = {}
- for _, line in ipairs(output:split("\r\n")) do
+ for _, line in ipairs(output:split("\r\n", {plain = true})) do
if line:match("warning %a+[0-9]+%s*:") then
table.insert(lines, line)
end