Module: kamailio
Branch: master
Commit: d416f7207a39db5ec15c0133904bfd76980a9d4b
URL: 
https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd76980a9d4b

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-12-03T16:55:57+01:00

cmake/defs.cmake: reorganize condition on cpu to prevent mismatching arm64

- arm64 was matched by arm6

---

Modified: cmake/defs.cmake

---

Diff:  
https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd76980a9d4b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd76980a9d4b.patch

---

diff --git a/cmake/defs.cmake b/cmake/defs.cmake
index 10940d2030c..4214ef57121 100644
--- a/cmake/defs.cmake
+++ b/cmake/defs.cmake
@@ -136,9 +136,13 @@ option(USE_FAST_LOCK "Use fast locking if available" ON)
 #
 if(USE_FAST_LOCK)
   if(CMAKE_SYSTEM_PROCESSOR MATCHES
-     "i386|x86_64|sparc64|sparc|arm6|arm7|ppc|ppc64|alpha|mips2|mips64"
+     "i386|x86_64|sparc64|sparc|ppc|ppc64|alpha|mips2|mips64"
   )
     set(USE_FAST_LOCK YES)
+  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
+    set(USE_FAST_LOCK NO)
+  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm6|arm7")
+    set(USE_FAST_LOCK YES)
   elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|aarch64")
     set(USE_FAST_LOCK YES)
     target_compile_definitions(common INTERFACE NOSMP) # memory barriers not

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to