diff options
| author | ruki <[email protected]> | 2021-11-30 12:14:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-30 12:14:55 +0800 |
| commit | 2cbe2a372389e8a20b6e509b74b6ce331fa1a626 (patch) | |
| tree | 24cd406189328edafdb4e98a39ccfe9c75a0ea02 | |
| parent | 5463aadf3a10a0c13d6df3de714a45b422d38df0 (diff) | |
Update package.lua
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index d47858e55..5da349187 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1421,9 +1421,7 @@ function _instance:fetch_linkdeps() fetchinfo = table.copy(fetchinfo) -- avoid the cached fetchinfo be modified local linkdeps = self:linkdeps() if linkdeps then - local total = #linkdeps - for idx, _ in ipairs(linkdeps) do - local dep = linkdeps[total + 1 - idx] + for _, dep in ipairs(linkdeps) do local depinfo = dep:fetch() if depinfo then for name, values in pairs(depinfo) do |
