diff options
| author | A2va <[email protected]> | 2023-09-30 17:58:56 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-09-30 17:58:56 +0200 |
| commit | 434993362b6c4a6a2f20bd634b71eb4f27221253 (patch) | |
| tree | 69244a043f8bb9d2587ecff0722096cbb16e4985 /xmake/core/project/target.lua | |
| parent | b637e0acc32faeeda669e135c546999c4a8e0c17 (diff) | |
Fix orderpairs with sourcebatches
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index ca46a7b69..e8da135af 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1862,7 +1862,8 @@ function _instance:sourcekinds() local sourcekinds = self._SOURCEKINDS if not sourcekinds then sourcekinds = {} - for _, sourcebatch in table.orderpairs(self:sourcebatches()) do + local sourcebatches, _ = self:sourcebatches() + for _, sourcebatch in table.orderpairs(sourcebatches) do local sourcekind = sourcebatch.sourcekind if sourcekind then table.insert(sourcekinds, sourcekind) |
