diff options
| author | ruki <[email protected]> | 2021-12-24 17:34:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-24 17:34:43 +0800 |
| commit | fc2d6099553595f692864a82c8037fe074ac64c7 (patch) | |
| tree | 7100b30c881bc901404ed8290311632ffe5a756e | |
| parent | e695208e9d42d5bd59af0afa34151c6f6a2c7aef (diff) | |
Update target.lua
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 3541aa626..837486b06 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1512,7 +1512,9 @@ function _instance:headerfiles(outputdir, only_deprecated) end pattern = path.pattern(pattern) if srcheader:match(pattern) then - table.remove(dstheaders, i) + if i <= #dstheaders then + table.remove(dstheaders, i) + end return true end end |
