Skip to content

Commit

Permalink
ARROW-12130: [C++] Don't enable Neon if -DARROW_SIMD_LEVEL=NONE
Browse files Browse the repository at this point in the history
Closes apache#9830 from cyb70289/neon-simd-none

Authored-by: Yibo Cai <yibo.cai@arm.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
cyb70289 authored and michalursa committed Jun 10, 2021
1 parent 2d79de1 commit d062d0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/cmake_modules/SetupCxxFlags.cmake
Expand Up @@ -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")
Expand Down

0 comments on commit d062d0d

Please sign in to comment.