summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzjyhjqs <[email protected]>2023-09-11 23:19:34 +0800
committerzjyhjqs <[email protected]>2023-09-11 23:26:52 +0800
commit0647ebc1f3fd014d15712f730d175e96378eb4f2 (patch)
tree9b8cec9a5115f03693c8ce90e551c56a137642f4
parentc701605661341751fd85f44eb342ddd9b906394f (diff)
note that system package is not supported currently
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index 22dcbfe48..78b24c38e 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -733,7 +733,11 @@ function main(requires, opt)
-- exists not found packages?
if #packages_not_found > 0 then
- cprint("${bright color.warning}note: ${clear}the following packages were not found on your system, try again after installing them:")
+ if packages_not_found[1]:is_cross() then
+ cprint("${bright color.warning}note: ${clear}system package is not supported for cross-compilation currently, the following system packages cannot be found:")
+ else
+ cprint("${bright color.warning}note: ${clear}the following packages were not found on your system, try again after installing them:")
+ end
for _, instance in ipairs(packages_not_found) do
print(" -> %s %s", instance:displayname(), instance:version_str() or "")
end