This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 74026cd02c GH-49292: [C++] Add support for armv8 or later (#49337)
74026cd02c is described below

commit 74026cd02c417934fc848693f9c673a79f3a3a3d
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Feb 20 09:19:38 2026 +0900

    GH-49292: [C++] Add support for armv8 or later (#49337)
    
    ### Rationale for this change
    
    armv8 may be 32bit or 64bit. `armv8l` uses 32bit and others use 64bit.
    
    ### What changes are included in this PR?
    
    Use `aarch32` for `armv[4-7]` and `armv8l`. User `aarch64` for other 
`armv*`.
    
    ### Are these changes tested?
    
    No.
    
    ### Are there any user-facing changes?
    
    Yes.
    * GitHub Issue: #49292
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/cmake_modules/SetupCxxFlags.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake 
b/cpp/cmake_modules/SetupCxxFlags.cmake
index bbd74284f5..f333bfbf6c 100644
--- a/cpp/cmake_modules/SetupCxxFlags.cmake
+++ b/cpp/cmake_modules/SetupCxxFlags.cmake
@@ -28,10 +28,10 @@ if(NOT DEFINED ARROW_CPU_FLAG)
     set(ARROW_CPU_FLAG "emscripten")
   elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64|amd64|X86|x86|i[3456]86|x64")
     set(ARROW_CPU_FLAG "x86")
-  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64|arm64")
-    set(ARROW_CPU_FLAG "aarch64")
-  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm$|armv[4-7]")
+  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm$|armv[4-7]|armv8l")
     set(ARROW_CPU_FLAG "aarch32")
+  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64|arm64|armv")
+    set(ARROW_CPU_FLAG "aarch64")
   elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc|ppc")
     set(ARROW_CPU_FLAG "ppc")
   elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")

Reply via email to