mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
arrow-cpp: build without jemalloc on aarch64-darwin to fix build
This commit is contained in:
parent
9fff252dcf
commit
e3e77ee8a4
|
@ -38,6 +38,7 @@
|
|||
, zstd
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
, enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin
|
||||
, enableJemalloc ? !(stdenv.isAarch64 && stdenv.isDarwin)
|
||||
# boost/process is broken in 1.69 on darwin, but fixed in 1.70 and
|
||||
# non-existent in older versions
|
||||
# see https://github.com/boostorg/process/issues/55
|
||||
|
@ -76,7 +77,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
sourceRoot = "apache-arrow-${version}/cpp";
|
||||
|
||||
ARROW_JEMALLOC_URL = jemalloc.src;
|
||||
${if enableJemalloc then "ARROW_JEMALLOC_URL" else null} = jemalloc.src;
|
||||
|
||||
ARROW_MIMALLOC_URL = fetchFromGitHub {
|
||||
# From
|
||||
|
@ -155,6 +156,7 @@ stdenv.mkDerivation rec {
|
|||
"-DARROW_COMPUTE=ON"
|
||||
"-DARROW_CSV=ON"
|
||||
"-DARROW_DATASET=ON"
|
||||
"-DARROW_JEMALLOC=${if enableJemalloc then "ON" else "OFF"}"
|
||||
"-DARROW_JSON=ON"
|
||||
"-DARROW_PLASMA=ON"
|
||||
# Disable Python for static mode because openblas is currently broken there.
|
||||
|
|
Loading…
Reference in a new issue