summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-21 23:33:41 +0800
committerruki <[email protected]>2024-09-23 09:43:53 +0800
commit42493b00d94baf4a19a153c4759d323fedd1089d (patch)
tree1d753bad8dc582fca6c0dae59b079854d6aad8a7
parent62cf6e8821c974cb450ed3fb208d8331860db98a (diff)
fix package tips
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua4
-rw-r--r--xmake/modules/private/action/require/impl/package.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index eed6fa0b7..0dc0e61ee 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -738,9 +738,9 @@ function _install_packages(requires, opt)
-- exists unsupported packages?
if #packages_unsupported > 0 then
- cprint("${bright color.warning}note: ${clear}the following packages are unsupported on $(plat)/$(arch):")
+ cprint("${bright color.warning}note: ${clear}the following packages are unsupported:")
for _, instance in ipairs(packages_unsupported) do
- print(" -> %s %s", instance:displayname(), instance:version_str() or "")
+ cprint(" ${yellow}->${clear} %s %s ${dim}%s", instance:displayname(), instance:version_str() or "", package.get_configs_str(instance))
end
has_errors = true
end
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 18d4db592..87c91aedd 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -1311,7 +1311,7 @@ function get_configs_str(package)
table.insert(configs, requireinfo.arch)
end
if requireinfo.host then
- table.insert(configs, requireinfo.host)
+ table.insert(configs, "host")
end
if requireinfo.kind then
table.insert(configs, requireinfo.kind)