From d062d0d318a8a036cf10277b541f32634e0b99af Mon Sep 17 00:00:00 2001 From: Yibo Cai Date: Mon, 29 Mar 2021 14:11:51 +0900 Subject: [PATCH] ARROW-12130: [C++] Don't enable Neon if -DARROW_SIMD_LEVEL=NONE Closes #9830 from cyb70289/neon-simd-none Authored-by: Yibo Cai Signed-off-by: Sutou Kouhei --- cpp/cmake_modules/SetupCxxFlags.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake b/cpp/cmake_modules/SetupCxxFlags.cmake index b534552c3c024..9f68c5604720b 100644 --- a/cpp/cmake_modules/SetupCxxFlags.cmake +++ b/cpp/cmake_modules/SetupCxxFlags.cmake @@ -451,7 +451,9 @@ if(ARROW_CPU_FLAG STREQUAL "armv8") endif() set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} ${ARROW_ARMV8_ARCH_FLAG}") - add_definitions(-DARROW_HAVE_NEON) + if(NOT ARROW_SIMD_LEVEL STREQUAL "NONE") + add_definitions(-DARROW_HAVE_NEON) + endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.4")