summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-23 23:14:28 +0800
committerruki <[email protected]>2024-09-23 23:14:28 +0800
commitfa452cfb19df74c9461fb97b987ec2e792bcb4f2 (patch)
tree07ef9c3dc76b22a61d20984cf687bc06b675a5b4 /xmake/modules/private/action/require/impl/package.lua
parentac62c9c9ed4ad7eff47b90c56fabdc6f6df6c492 (diff)
all package deps inherit host
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 072b7e9c4..5fc10ee0e 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -619,6 +619,12 @@ function _finish_requireinfo(requireinfo, package)
requireinfo.configs[k] = nil
end
end
+
+ -- all binary packages are host package
+ -- we need to synchronize the setup to requireinfo so that all its dependent packages inherit from it.
+ if package:is_binary() then
+ requireinfo.host = true
+ end
end
-- merge requireinfo from `add_requireconfs()`