summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-12 22:31:47 +0800
committerruki <[email protected]>2026-04-12 22:31:47 +0800
commit53363921539beb3829e0054b4b2c868444398ee2 (patch)
tree1e70d5e44d3d4603999003352a2f1787f60e00e4
parent1554ea67e1cca831455d6bb8f413b3da867f3635 (diff)
fix review issue
-rw-r--r--xmake/core/package/package.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index bea6a2ff9..636b717c2 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -2132,11 +2132,13 @@ function _instance:fetch(opt)
-- but windows api headers may declare mixed-case names (e.g. Bcrypt, Crypt32)
-- @see https://github.com/xmake-io/xmake/issues/9113
if fetchinfo and fetchinfo.syslinks and self:is_plat("mingw") and os.fscase() then
+ fetchinfo = table.clone(fetchinfo)
local syslinks = table.wrap(fetchinfo.syslinks)
+ local results = {}
for i, link in ipairs(syslinks) do
- syslinks[i] = link:lower()
+ results[i] = link:lower()
end
- fetchinfo.syslinks = table.unwrap(syslinks)
+ fetchinfo.syslinks = table.unwrap(results)
end
-- save to cache