arrow-cpp: fix build on architectures other than x86_64

Settting ARROW_USE_SIMD=OFF used to fix i686 build for 1.12.0.
The fix for ARROW-5007 should help on aarch64.
This commit is contained in:
Dmitry Kalinkin 2019-04-12 00:20:08 -04:00
parent 45da66351c
commit 43c7477345
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
cp ${Finduriparser_cmake} cmake_modules/Finduriparser.cmake
patchShebangs build-support/
# Fix build for ARROW_USE_SIMD=OFF
# https://jira.apache.org/jira/browse/ARROW-5007
sed -i src/arrow/util/sse-util.h -e '1i#include "arrow/util/logging.h"'
sed -i src/arrow/util/neon-util.h -e '1i#include "arrow/util/logging.h"'
'';
cmakeFlags = [
@ -52,7 +57,7 @@ stdenv.mkDerivation rec {
"-DARROW_PARQUET=ON"
"-DARROW_PYTHON=ON"
"-Duriparser_SOURCE=SYSTEM"
];
] ++ stdenv.lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF";
doInstallCheck = true;
PARQUET_TEST_DATA = if doInstallCheck then "${parquet-testing}/data" else null;