From 4abb777fb6cdca3bfeebfd2ae2b2f4a2d4089dad Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 26 Feb 2025 22:59:10 +0800 Subject: fix concat package --- xmake/modules/private/utils/package.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake/modules/private/utils/package.lua b/xmake/modules/private/utils/package.lua index 7a2ad1365..1bdef40b5 100644 --- a/xmake/modules/private/utils/package.lua +++ b/xmake/modules/private/utils/package.lua @@ -34,6 +34,12 @@ function _concat_packages(a, b) -- we need to ensure link orders when removing repeat values v = table.reverse_unique(v) end + elseif k == "static" or k == "shared" then + v = table.unwrap(table.unique(v)) + if type(v) == "table" then + -- conflict, {true, false} + v = true + end else v = table.unique(v) end -- cgit v1.3.1