Skip to content

Commit

Permalink
Rebase the patch to master
Browse files Browse the repository at this point in the history
Change-Id: I3044a89bae619968e340636996f014a0134f1030
Signed-off-by: Yuqi Gu <[email protected]>
  • Loading branch information
guyuqi committed Nov 28, 2018
1 parent e9c1317 commit 423000b
Show file tree
Hide file tree
Showing 6 changed files with 386 additions and 963 deletions.
6 changes: 6 additions & 0 deletions cpp/cmake_modules/SetupCxxFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-msse4.2" CXX_SUPPORTS_SSE4_2)
# power compiler flags
CHECK_CXX_COMPILER_FLAG("-maltivec" CXX_SUPPORTS_ALTIVEC)
# Arm64 compiler flags
CHECK_CXX_COMPILER_FLAG("-march=armv8-a+crc" CXX_SUPPORTS_ARMCRC)

# This ensures that things like gnu++11 get passed correctly
set(CMAKE_CXX_STANDARD 11)
Expand Down Expand Up @@ -220,6 +222,10 @@ if (CXX_SUPPORTS_ALTIVEC AND ARROW_ALTIVEC)
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -maltivec")
endif()

if (CXX_SUPPORTS_ARMCRC)
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -march=armv8-a+crc")
endif()

if (ARROW_USE_SSE)
add_definitions(-DARROW_USE_SSE)
endif()
Expand Down
Loading

0 comments on commit 423000b

Please sign in to comment.