Module: kamailio Branch: master Commit: 2bd61fc1b13af0e05b3060257f89a884433370bd URL: https://github.com/kamailio/kamailio/commit/2bd61fc1b13af0e05b3060257f89a884433370bd
Author: Xenofon Karamanos <x...@gilawa.com> Committer: Xenofon Karamanos <x...@gilawa.com> Date: 2025-08-26T11:11:30Z cmake: Add arm6 compile options --- Modified: cmake/compiler-specific.cmake --- Diff: https://github.com/kamailio/kamailio/commit/2bd61fc1b13af0e05b3060257f89a884433370bd.diff Patch: https://github.com/kamailio/kamailio/commit/2bd61fc1b13af0e05b3060257f89a884433370bd.patch --- diff --git a/cmake/compiler-specific.cmake b/cmake/compiler-specific.cmake index 85fe7d976bd..db635b0dd83 100644 --- a/cmake/compiler-specific.cmake +++ b/cmake/compiler-specific.cmake @@ -120,6 +120,24 @@ elseif(TARGET_ARCH STREQUAL "arm7") else() message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm7. Try GCC.") endif() +elseif(TARGET_ARCH STREQUAL "arm6") + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") + target_compile_definitions(common_compiler_flags INTERFACE CC_GCC_LIKE_ASM) + target_compile_options( + common_compiler_flags INTERFACE -march=armv6 -funroll-loops -fsigned-char + ) + if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.2.0) + target_compile_options(common_compiler_flags INTERFACE -ftree-vectorize -fno-strict-overflow) + elseif(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.0) + target_compile_options(common_compiler_flags INTERFACE -ftree-vectorize) + else() + message( + WARNING "GCC version ${CMAKE_C_COMPILER_VERSION} is too old for arm6. Try GCC 4.0 or newer." + ) + endif() + else() + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm6. Try GCC.") + endif() elseif(TARGET_ARCH STREQUAL "arm") if(CMAKE_C_COMPILER_ID STREQUAL "GNU") target_compile_definitions(common_compiler_flags INTERFACE CC_GCC_LIKE_ASM) _______________________________________________ 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!