summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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