rocksdb: enable optional jemalloc support
This commit is contained in:
parent
166ab9d237
commit
f2b8a45cde
@ -8,6 +8,7 @@
|
||||
, snappy
|
||||
, zlib
|
||||
, zstd
|
||||
, enableJemalloc ? false, jemalloc
|
||||
, enableLite ? false
|
||||
, enableShared ? true
|
||||
}:
|
||||
@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ninja ];
|
||||
|
||||
buildInputs = [ bzip2 lz4 snappy zlib zstd ];
|
||||
buildInputs = [ bzip2 lz4 snappy zlib zstd ] ++ stdenv.lib.optional enableJemalloc jemalloc;
|
||||
|
||||
patches = [
|
||||
# Without this change private dependencies are exported.
|
||||
@ -41,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [
|
||||
"-DPORTABLE=1"
|
||||
"-DWITH_JEMALLOC=0"
|
||||
"-DWITH_JEMALLOC=${if enableJemalloc then "1" else "0"}"
|
||||
"-DWITH_JNI=0"
|
||||
"-DWITH_BENCHMARK_TOOLS=0"
|
||||
"-DWITH_TESTS=1"
|
||||
|
Loading…
Reference in New Issue
Block a user