Module: kamailio
Branch: master
Commit: d416f7207a39db5ec15c0133904bfd76980a9d4b
URL:
https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/d416f7207a39db5ec15c0133904bfd7…
Patch:
https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd7…
---
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