summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxmake/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
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