summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-18 14:30:57 +0800
committerruki <[email protected]>2022-12-18 14:30:57 +0800
commit7108528ba8b47cc9388109f1f246e910204ff030 (patch)
treeede1d207f878ddb47727cdd037a86b0c6e6a4259
parentcd725062f43a77d8919ccc29d751ad3763fc80b8 (diff)
fix load_deps
-rw-r--r--xmake/core/base/private/instance_deps.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/private/instance_deps.lua b/xmake/core/base/private/instance_deps.lua
index 2473a4c3f..857e3a2e1 100644
--- a/xmake/core/base/private/instance_deps.lua
+++ b/xmake/core/base/private/instance_deps.lua
@@ -39,12 +39,12 @@ local table = require("base/table")
-- if they're target, their links order is reverse(orderdeps), e.g. foo-> a -> d -> b -> c
--
function instance_deps.load_deps(instance, instances, deps, orderdeps, depspath)
- local deps = table.wrap(instance:get("deps"))
- local total = #deps
- for idx, _ in ipairs(deps) do
+ local plaindeps = table.wrap(instance:get("deps"))
+ local total = #plaindeps
+ for idx, _ in ipairs(plaindeps) do
-- we reverse to get the flat dependencies in order to ensure the correct linking order
-- @see https://github.com/xmake-io/xmake/issues/3144
- local dep = deps[total + 1 - idx]
+ local dep = plaindeps[total + 1 - idx]
local depinst = instances[dep]
if depinst then
local depspath_sub