From 02cd794b7fcf88378c0f97d16061a7b9e5a433fd Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Tue, 22 Jul 2025 06:26:00 +0200 Subject: [PATCH] mimalloc: update to 2.2.4 (#24909) Both patches have been upstreamed and are not required anymore. See and . --- mingw-w64-mimalloc/0001-fix-import-lib.patch | 11 -------- ...refix-when-enabling-mimalloc-redirec.patch | 27 ------------------- mingw-w64-mimalloc/PKGBUILD | 19 +++---------- 3 files changed, 4 insertions(+), 53 deletions(-) delete mode 100644 mingw-w64-mimalloc/0001-fix-import-lib.patch delete mode 100644 mingw-w64-mimalloc/0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch diff --git a/mingw-w64-mimalloc/0001-fix-import-lib.patch b/mingw-w64-mimalloc/0001-fix-import-lib.patch deleted file mode 100644 index 362c44746f..0000000000 --- a/mingw-w64-mimalloc/0001-fix-import-lib.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -582,7 +582,7 @@ - install(TARGETS mimalloc EXPORT mimalloc ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir}) - -- if(WIN32) -+ if(WIN32 AND NOT MINGW) - # On windows, the import library name for the dll would clash with the static mimalloc.lib library - # so we postfix the dll import library with `.dll.lib` (and also the .pdb debug file) - set_property(TARGET mimalloc PROPERTY ARCHIVE_OUTPUT_NAME "${mi_libname}.dll" ) diff --git a/mingw-w64-mimalloc/0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch b/mingw-w64-mimalloc/0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch deleted file mode 100644 index 2ff208821f..0000000000 --- a/mingw-w64-mimalloc/0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch +++ /dev/null @@ -1,27 +0,0 @@ -From d2c834f3f37f5e473002def7fbf4cf0c567dcdb8 Mon Sep 17 00:00:00 2001 -From: Peiyuan Song -Date: Mon, 24 Mar 2025 09:39:42 +0800 -Subject: [PATCH] remove the `lib` prefix when enabling mimalloc-redirect for - mingw - ---- - CMakeLists.txt | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 0d780fa1..e5c5f46a 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -592,6 +592,9 @@ if(MI_BUILD_SHARED) - # install(FILES "$/${mi_libname}.dll.pdb" DESTINATION ${CMAKE_INSTALL_LIBDIR}) - endif() - if(WIN32 AND MI_WIN_REDIRECT) -+ if(MINGW) -+ set_property(TARGET mimalloc PROPERTY PREFIX "") -+ endif() - # On windows, link and copy the mimalloc redirection dll too. - if(CMAKE_GENERATOR_PLATFORM STREQUAL "arm64ec") - set(MIMALLOC_REDIRECT_SUFFIX "-arm64ec") --- -2.49.0.windows.1 - diff --git a/mingw-w64-mimalloc/PKGBUILD b/mingw-w64-mimalloc/PKGBUILD index b3c145aa91..269241d814 100644 --- a/mingw-w64-mimalloc/PKGBUILD +++ b/mingw-w64-mimalloc/PKGBUILD @@ -4,8 +4,8 @@ _realname=mimalloc pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") -pkgver=2.2.2 -pkgrel=4 +pkgver=2.2.4 +pkgrel=1 pkgdesc='General-purpose allocator with excellent performance characteristics (mingw-w64)' arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -15,19 +15,8 @@ depends=("${MINGW_PACKAGE_PREFIX}-cc-libs") makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-ninja") -source=("https://github.com/microsoft/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz" - "0001-fix-import-lib.patch" - "0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch") -sha256sums=('0f9dc18b1b0b664e68dd57c537b9edc3e8c3b5e12932cff0d4277134318ee930' - '23d4e33be33e542ba891c3b6c953c115c0a59e65e4f132ce90adb15df7695a3e' - '24d056016a817d334e3edd296d589bfd989f3084635b24c7d8f01ccd3c23879c') - -prepare() { - cd ${_realname}-${pkgver} - - patch -Np1 -i ../0001-fix-import-lib.patch - patch -Np1 -i ../0002-remove-the-lib-prefix-when-enabling-mimalloc-redirec.patch -} +source=("https://github.com/microsoft/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +sha256sums=('754a98de5e2912fddbeaf24830f982b4540992f1bab4a0a8796ee118e0752bda') build() { MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \