summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-01 16:05:45 +0800
committerruki <[email protected]>2020-03-01 16:05:45 +0800
commit69fbcc74692a3728e0c731bddf89441e91599a3d (patch)
tree1585f932b9365f1f51127881b20ed4b1b7958938
parent5ba685444d93ec2aeb0adcc5974d71c454f9ae90 (diff)
improve to parse_deps
-rw-r--r--xmake/modules/private/tools/gcc/parse_deps.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua
index a7e10a45e..eedf31125 100644
--- a/xmake/modules/private/tools/gcc/parse_deps.lua
+++ b/xmake/modules/private/tools/gcc/parse_deps.lua
@@ -69,8 +69,8 @@ function main(depsfile)
if p then
line = line:sub(p + 1)
line = line:gsub("\\ ", space_placeholder)
- for _, includefile in ipairs(line:split("%s")) do
- includefile = includefile:gsub(space_placeholder, " ")
+ for _, includefile in ipairs(line:split(' ', {plain = true})) do
+ includefile = includefile:gsub(space_placeholder, ' ')
includefile = _normailize_dep(includefile)
if includefile then
table.insert(results, includefile)