From 448ec7e23eb0beaf4bd1d395656ae55b1f06c5f8 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Mon, 3 Jun 2019 11:28:40 +0800 Subject: fix split --- xmake/modules/private/tools/gcc/parse_deps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua index 76f2acd50..ec740f220 100644 --- a/xmake/modules/private/tools/gcc/parse_deps.lua +++ b/xmake/modules/private/tools/gcc/parse_deps.lua @@ -66,7 +66,7 @@ function main(depsdata) if p ~= nil then line = line:sub(p + 1) line = line:gsub("\\ ", spacePlaceHolder) - for _, includefile in ipairs(line:split("%s+")) do + for _, includefile in ipairs(line:split("%s")) do includefile = includefile:gsub(spacePlaceHolder, " ") includefile = _normailize_dep(includefile) if includefile then -- cgit v1.3.1