summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index 0dc0e61ee..303b300d9 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -738,9 +738,18 @@ function _install_packages(requires, opt)
-- exists unsupported packages?
if #packages_unsupported > 0 then
- cprint("${bright color.warning}note: ${clear}the following packages are unsupported:")
+ local packages_unsupported_maps = {}
for _, instance in ipairs(packages_unsupported) do
- cprint(" ${yellow}->${clear} %s %s ${dim}%s", instance:displayname(), instance:version_str() or "", package.get_configs_str(instance))
+ local key = instance:plat() .. "/" .. instance:arch()
+ packages_unsupported_maps[key] = packages_unsupported_maps[key] or {}
+ table.insert(packages_unsupported_maps[key], instance)
+ end
+ for key, instances in pairs(packages_unsupported_maps) do
+ cprint("${bright color.warning}note: ${clear}the following packages are unsupported on %s:", key)
+ for _, instance in ipairs(instances) do
+ cprint(" ${yellow}->${clear} %s %s ${dim}%s",
+ instance:displayname(), instance:version_str() or "", package.get_configs_str(instance))
+ end
end
has_errors = true
end