3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #174237 from Mic92/folly

folly: enable jemalloc
This commit is contained in:
Jörg Thalheim 2022-07-18 12:53:06 +01:00 committed by GitHub
commit 9b09ad4772
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@
, xz
, zlib
, zstd
, jemalloc
, follyMobile ? false
}:
@ -50,7 +51,10 @@ stdenv.mkDerivation rec {
libunwind
fmt_8
zstd
];
] ++ lib.optional stdenv.isLinux jemalloc;
# jemalloc headers are required in include/folly/portability/Malloc.h
propagatedBuildInputs = lib.optional stdenv.isLinux jemalloc;
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];