mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
jemalloc: support page size up to 64KB on AArch64
The default build configuration only supports page sizes up to 4KB. AArch64 systems (among other architectures) can be configured with larger page sizes. nixpkgs's jemalloc currently crashes in these situations.
This commit is contained in:
parent
ec4019f6dc
commit
e924a39abd
@ -30,6 +30,9 @@ stdenv.mkDerivation rec {
|
||||
"--disable-thp"
|
||||
"je_cv_thp=no"
|
||||
]
|
||||
# AArch64 has configurable page size up to 64k. The default configuration
|
||||
# for jemalloc only supports 4k page sizes.
|
||||
++ lib.optional stdenv.isAarch64 "--with-lg-page=16"
|
||||
;
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds";
|
||||
|
Loading…
Reference in New Issue
Block a user