From ac62c9c9ed4ad7eff47b90c56fabdc6f6df6c492 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 Sep 2024 23:52:52 +0800 Subject: [PATCH] improve package configs str --- xmake/modules/private/action/require/impl/package.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 87c91aedd0..072b7e9c40 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -1302,6 +1302,9 @@ function get_configs_str(package) if package:is_private() then table.insert(configs, "private") end + if package:is_host() then + table.insert(configs, "host") + end local requireinfo = package:requireinfo() if requireinfo then if requireinfo.plat then @@ -1310,9 +1313,6 @@ function get_configs_str(package) if requireinfo.arch then table.insert(configs, requireinfo.arch) end - if requireinfo.host then - table.insert(configs, "host") - end if requireinfo.kind then table.insert(configs, requireinfo.kind) end