From 097ec93cd26932f88ece89d55c7e6d9affb16f1b Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Apr 2024 00:34:40 +0800 Subject: [PATCH] fix requirekey #4991 --- xmake/modules/private/action/require/impl/utils/requirekey.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmake/modules/private/action/require/impl/utils/requirekey.lua b/xmake/modules/private/action/require/impl/utils/requirekey.lua index 45adac2b4d1..bfd724d06eb 100644 --- a/xmake/modules/private/action/require/impl/utils/requirekey.lua +++ b/xmake/modules/private/action/require/impl/utils/requirekey.lua @@ -56,6 +56,9 @@ function main(requireinfo, opt) if configs then local configs_order = {} for k, v in pairs(configs) do + if type(v) == "table" then + v = string.serialize(v, {strip = true, indent = false, orderkeys = true}) + end table.insert(configs_order, k .. "=" .. tostring(v)) end table.sort(configs_order)