summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-10 23:03:52 +0800
committerruki <[email protected]>2022-07-10 23:03:52 +0800
commit2d2192a88204f004b74f04015c8d0bad21cc0eae (patch)
tree690ddecfaf7fb0de3dcf692dfc8d97bfff32928c /xmake/modules/private/action/require/impl/package.lua
parentc497ad7b4cb33a8977a924ea8e528541f1e72f84 (diff)
fix package parents
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index cf330f308..5c644be1c 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -870,10 +870,12 @@ function _load_packages(requires, opt)
nodeps = opt.nodeps,
system = false})
for _, dep in ipairs(deps) do
- dep:parents_add(package)
table.insert(packages, dep)
packagedeps[dep:name()] = dep
end
+ for _, dep in ipairs(plaindeps) do
+ dep:parents_add(package)
+ end
package._DEPS = packagedeps
package._PLAINDEPS = plaindeps
package._ORDERDEPS = table.unique(_sort_packagedeps(package))