arrow-cpp: Fix building x86_64-darwin on aarch_64-darwin

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.

(cherry picked from commit 9764c81130)
This commit is contained in:
Andrew Marshall
2022-09-27 12:24:41 -04:00
committed by github-actions[bot]
parent 9282141c8b
commit 24e36bebeb

View File

@@ -40,7 +40,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