summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-01 21:14:20 +0800
committerGitHub <[email protected]>2023-10-01 21:14:20 +0800
commit4ea0573047db301f1569c9d6b0d117f92433db49 (patch)
treef495cd7b7286c3d81f5a209515b662da4f0c5002 /xmake/core/project/target.lua
parent15e5f277191e8a088998d0f797dd1f44b5491e17 (diff)
parent85a605758c47eaa92b0a22b028cc4896eceeaf3f (diff)
Merge pull request #4253 from A2va/orderkeys-sort-function
Sort keys by callback function
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index b53291358..61501648f 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1889,7 +1889,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)