diff options
| author | ruki <[email protected]> | 2016-07-10 16:32:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-10 16:32:31 +0800 |
| commit | 6f0ee30871bde957f6923bdad95ac1c10a39fda3 (patch) | |
| tree | 78f6ef1e2ee6510b73586a8f436ce7995c81ff3f | |
| parent | e281ea26c19103dcbc7f951a8592eeb6a1ff63a3 (diff) | |
fix parse include files pattern
| -rwxr-xr-x | xmake/tools/cl.lua | 2 | ||||
| -rwxr-xr-x | 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 |
