summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-10 16:32:31 +0800
committerruki <[email protected]>2016-07-10 16:32:31 +0800
commit6f0ee30871bde957f6923bdad95ac1c10a39fda3 (patch)
tree78f6ef1e2ee6510b73586a8f436ce7995c81ff3f
parente281ea26c19103dcbc7f951a8592eeb6a1ff63a3 (diff)
fix parse include files pattern
-rwxr-xr-xxmake/tools/cl.lua2
-rwxr-xr-xxmake/tools/gcc.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/tools/cl.lua b/xmake/tools/cl.lua
index faba74124..9ebc52560 100755
--- a/xmake/tools/cl.lua
+++ b/xmake/tools/cl.lua
@@ -128,7 +128,7 @@ function compile(sourcefile, objectfile, incdepfile, flags)
-- translate it
local results = {}
- for includefile in string.gmatch(outdata, "including file:%s*(.-%.[h|hpp])") do
+ for includefile in string.gmatch(outdata, "including file:%s*(.-%.hp*)") do
table.insert(results, includefile)
end
diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua
index 68c7c9100..ebcf54050 100755
--- a/xmake/tools/gcc.lua
+++ b/xmake/tools/gcc.lua
@@ -162,7 +162,7 @@ function compile(sourcefile, objectfile, incdepfile, flags)
-- translate it
local results = {}
local incdeps = io.read(tmpfile)
- for includefile in string.gmatch(incdeps, "([%w|/|%.|%-|%+|_|%$]-%.[h|hpp])") do
+ for includefile in string.gmatch(incdeps, "([%w|/|%.|%-|%+|_|%$]-%.hp*)") do
table.insert(results, includefile)
end