jemalloc: fix building emulated x86_64-darwin on aarch64-darwin
This commit is contained in:
parent
6bcaf7ee4f
commit
f97ed85bae
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ stdenv.mkDerivation rec {
|
||||||
# AArch64 has configurable page size up to 64k. The default configuration
|
# AArch64 has configurable page size up to 64k. The default configuration
|
||||||
# for jemalloc only supports 4k page sizes.
|
# for jemalloc only supports 4k page sizes.
|
||||||
++ lib.optional stdenv.isAarch64 "--with-lg-page=16"
|
++ lib.optional stdenv.isAarch64 "--with-lg-page=16"
|
||||||
|
# See https://github.com/jemalloc/jemalloc/issues/1997
|
||||||
|
# Using a value of 48 should work on both emulated and native x86_64-darwin.
|
||||||
|
++ lib.optional (stdenv.isDarwin && stdenv.isx86_64) "--with-lg-vaddr=48"
|
||||||
;
|
;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds";
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds";
|
||||||
|
|
Loading…
Reference in a new issue