From 6f0ee30871bde957f6923bdad95ac1c10a39fda3 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 10 Jul 2016 16:32:31 +0800 Subject: fix parse include files pattern --- xmake/tools/cl.lua | 2 +- xmake/tools/gcc.lua | 2 +- 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 -- cgit v1.3.1