You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/11/08 04:58:43 UTC

[arrow] branch master updated: ARROW-18260: [C++][CMake] Add support for x64 for CMAKE_SYSTEM_PROCESSOR (#14598)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4ec92ec1f8 ARROW-18260: [C++][CMake] Add support for x64 for CMAKE_SYSTEM_PROCESSOR (#14598)
4ec92ec1f8 is described below

commit 4ec92ec1f8cf54b8ad70ef4a973573bf17d9b43d
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Tue Nov 8 13:58:37 2022 +0900

    ARROW-18260: [C++][CMake] Add support for x64 for CMAKE_SYSTEM_PROCESSOR (#14598)
    
    vcpkg uses x64:
    
    https://vcpkg.readthedocs.io/en/latest/users/triplets/
    
    > Valid options are x86, x64, arm, arm64 and wasm32.
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 cpp/cmake_modules/SetupCxxFlags.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake b/cpp/cmake_modules/SetupCxxFlags.cmake
index bf0f7dea8c..88d2f0fdae 100644
--- a/cpp/cmake_modules/SetupCxxFlags.cmake
+++ b/cpp/cmake_modules/SetupCxxFlags.cmake
@@ -24,7 +24,7 @@ include(CheckCXXSourceCompiles)
 message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}")
 
 if(NOT DEFINED ARROW_CPU_FLAG)
-  if(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64|X86|x86|i[3456]86")
+  if(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64|X86|x86|i[3456]86|x64")
     set(ARROW_CPU_FLAG "x86")
   elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64|arm64")
     set(ARROW_CPU_FLAG "armv8")