From 1bf44cd0d190fe0b388b92ca12515cecfa5f9715 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 11 Jul 2016 21:14:52 +0800 Subject: fix parse includes for gcc --- xmake/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua index 182ce173c..556e7ae40 100755 --- a/xmake/tools/gcc.lua +++ b/xmake/tools/gcc.lua @@ -163,7 +163,7 @@ function compile(sourcefile, objectfile, incdepfile, flags) -- translate it local results = {} local incdeps = io.read(tmpfile) - for includefile in string.gmatch(incdeps, "([%w|/|%.|%-|%+|_|%$]-%.hp*)") do + for includefile in string.gmatch(incdeps, "%s+([%w/%.%-%+_%$%.]+)") do -- save it if belong to the project if not path.is_absolute(includefile) then -- cgit v1.3.1