Skip to content

Commit

Permalink
ARROW-13671: [Dev] Fix conda recipe on Arm 64k page system
Browse files Browse the repository at this point in the history
Closes apache#10963 from cyb70289/arm-64k-page

Authored-by: Yibo Cai <yibo.cai@arm.com>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
  • Loading branch information
cyb70289 authored and Matthew Topol committed Sep 12, 2021
1 parent 6b6f1ef commit 718da6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev/tasks/conda-recipes/arrow-cpp/build-arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ fi

if [[ "${target_platform}" == "osx-arm64" ]]; then
# We need llvm 11+ support in Arrow for this
EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DARROW_GANDIVA=OFF"
# Tell jemalloc to support 16K page size on apple arm64 silicon
EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DARROW_GANDIVA=OFF -DARROW_JEMALLOC_LG_PAGE=14"
sed -ie "s;protoc-gen-grpc.*$;protoc-gen-grpc=${BUILD_PREFIX}/bin/grpc_cpp_plugin\";g" ../src/arrow/flight/CMakeLists.txt
sed -ie 's;"--with-jemalloc-prefix\=je_arrow_";"--with-jemalloc-prefix\=je_arrow_" "--with-lg-page\=14";g' ../cmake_modules/ThirdpartyToolchain.cmake
elif [[ "${target_platform}" == "linux-aarch64" ]]; then
# Tell jemalloc to support both 4k and 64k page arm64 systems
# See https://github.com/apache/arrow/pull/10940
EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DARROW_GANDIVA=ON -DARROW_JEMALLOC_LG_PAGE=16"
else
EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DARROW_GANDIVA=ON"
fi
Expand Down

0 comments on commit 718da6e

Please sign in to comment.