From cc89e76d76e3fdcdc2378af3306b85a7b443acff Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 27 Sep 2022 15:21:39 -0400 Subject: [PATCH] arrow-cpp: Fix building x86_64-darwin on aarch_64-darwin (#193207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building x86_64-darwin emulated via Rosetta on aarch64-darwin, all tests would fail with > Illegal instruction: 4 this resolves that by never using Jemalloc on Darwin, since even though `isAarch64` is false, it might “really” be aarch64-darwin. --- pkgs/development/libraries/arrow-cpp/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/arrow-cpp/default.nix b/pkgs/development/libraries/arrow-cpp/default.nix index d3b736fbe0f0..a72ebc293092 100644 --- a/pkgs/development/libraries/arrow-cpp/default.nix +++ b/pkgs/development/libraries/arrow-cpp/default.nix @@ -39,7 +39,7 @@ , zstd , enableShared ? !stdenv.hostPlatform.isStatic , enableFlight ? true -, enableJemalloc ? !(stdenv.isAarch64 && stdenv.isDarwin) +, enableJemalloc ? !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