Browse Source

mimalloc: update to v2.2.4 (#7877)

* Update mimalloc to v2.2.4

* Update mimalloc to v2.2.4: fix CMakeLists.txt redirect replace
Daniil 3 weeks ago
parent
commit
2111b79aae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/m/mimalloc/xmake.lua

+ 4 - 0
packages/m/mimalloc/xmake.lua

@@ -6,6 +6,7 @@ package("mimalloc")
     set_urls("https://github.com/microsoft/mimalloc/archive/refs/tags/$(version).zip",
              "https://github.com/microsoft/mimalloc.git")
 
+    add_versions("v2.2.4", "664667a48c9f101d979bbe4e41ee631da49d2024e30d66b7779b6ba4279af367")
     add_versions("v2.1.7", "fa61cf01e3dd869b35275bfd8be95bfde77f0b65dfa7e34012c09a66e1ea463f")
     add_versions("v2.1.2", "86281c918921c1007945a8a31e5ad6ae9af77e510abfec20d000dd05d15123c7")
     add_versions("v2.0.7", "ddb32937aabddedd0d3a57bf68158d4e53ecf9e051618df3331a67182b8b0508")
@@ -66,6 +67,9 @@ package("mimalloc")
         if package:version():le("2.0.1") and package:config("shared") and package:is_plat("windows") and package:is_arch("x86") then
             io.replace("CMakeLists.txt", "-redirect.", "-redirect32.", {plain = true})
         end
+        if package:version():ge("2.2.4") and package:config("shared") and package:is_plat("windows", "mingw") and not package:is_arch64() then
+            io.replace("CMakeLists.txt", "-redirect${MIMALLOC_REDIRECT_SUFFIX}", "-redirect32", {plain = true})
+        end
         local cxflags
         if package:config("rltgenrandom") then
             if xmake:version():ge("2.5.1") then