diff options
| author | ruki <[email protected]> | 2019-06-04 22:41:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-04 10:08:31 +0800 |
| commit | 18663d52e5ff484eea423f88cbf52cc10c5721f3 (patch) | |
| tree | 3e1e147713b4ca50276b676b9b346f52f893708b /xmake/modules/private/tools | |
| parent | 255d51be7e7ed10a13a4cd55b5aae55079ab4bb9 (diff) | |
improve string.split
Diffstat (limited to 'xmake/modules/private/tools')
| -rw-r--r-- | xmake/modules/private/tools/gcc/parse_deps.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua index 382a3dcdf..4d38aede9 100644 --- a/xmake/modules/private/tools/gcc/parse_deps.lua +++ b/xmake/modules/private/tools/gcc/parse_deps.lua @@ -64,7 +64,7 @@ function main(depsdata) -- parse results local results = {} local data = depsdata:gsub("\\\n", "") - for _, line in ipairs(data:split("\n")) do + for _, line in ipairs(data:split("\n", {plain = true})) do local p = line:find(':', 1, true) if p then line = line:sub(p + 1) |
