[packages/mimalloc] make arch pattern check for arm32 more flexible

atler atler at pld-linux.org
Sun Apr 27 15:32:19 CEST 2025


commit 7f4f9c3b6af1fbc9a37d04f1789d31f79b20d0f6
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Apr 27 14:51:05 2025 +0200

    make arch pattern check for arm32 more flexible

 arm-arch-pattern.patch | 11 +++++++++++
 mimalloc.spec          |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/mimalloc.spec b/mimalloc.spec
index b266e99..da57aa4 100644
--- a/mimalloc.spec
+++ b/mimalloc.spec
@@ -15,6 +15,7 @@ Group:		Libraries
 Source0:	https://github.com/microsoft/mimalloc/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	63ea5d19341717593a45e7a01138b82e
 Patch0:		%{name}-build_type.patch
+Patch1:		arm-arch-pattern.patch
 URL:		https://github.com/microsoft/mimalloc
 BuildRequires:	cmake >= 3.18
 BuildRequires:	libatomic-devel
@@ -82,6 +83,7 @@ Statyczna biblioteka mimalloc.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %cmake -B build \
diff --git a/arm-arch-pattern.patch b/arm-arch-pattern.patch
new file mode 100644
index 0000000..5af4e34
--- /dev/null
+++ b/arm-arch-pattern.patch
@@ -0,0 +1,11 @@
+--- mimalloc-2.2.3/CMakeLists.txt.orig	2025-04-27 14:46:48.060212113 +0200
++++ mimalloc-2.2.3/CMakeLists.txt	2025-04-27 14:49:20.448753767 +0200
+@@ -126,7 +126,7 @@
+   set(MI_ARCH "x64")
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv[89].?|ARM64)$" OR CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64" OR "arm64" IN_LIST CMAKE_OSX_ARCHITECTURES)
+   set(MI_ARCH "arm64")
+-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv[34567]|ARM)$")
++elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv[34567][^0-9]*|ARM)$")
+   set(MI_ARCH "arm32")
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv|riscv32|riscv64)$")
+   if(CMAKE_SIZEOF_VOID_P==4)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mimalloc.git/commitdiff/7f4f9c3b6af1fbc9a37d04f1789d31f79b20d0f6



More information about the pld-cvs-commit mailing list