summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index 461131aa0..ab7556cc4 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -245,6 +245,9 @@ function _install_packages(packages_install, packages_download)
end
-- register it to local cache if it is root required package
+ --
+ -- @note we need to register the package in time,
+ -- because other packages may be used, e.g. toolchain/packages
if not instance:parents() then
register_packages(instance)
end