mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
rocksdb: enable support for lite mode
See: https://github.com/facebook/rocksdb/blob/master/ROCKSDB_LITE.md
This commit is contained in:
parent
dc21851707
commit
29d2fe4a1f
@ -6,6 +6,8 @@
|
||||
|
||||
# Malloc implementation
|
||||
, jemalloc ? null, gperftools ? null
|
||||
|
||||
, enableLite ? false
|
||||
}:
|
||||
|
||||
let
|
||||
@ -35,6 +37,9 @@ stdenv.mkDerivation rec {
|
||||
CMAKE_CXX_FLAGS = "-std=gnu++11";
|
||||
JEMALLOC_LIB = stdenv.lib.optionalString (malloc == jemalloc) "-ljemalloc";
|
||||
|
||||
${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
|
||||
${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
|
||||
|
||||
buildFlags = [
|
||||
"DEBUG_LEVEL=0"
|
||||
"shared_lib"
|
||||
|
@ -9969,6 +9969,8 @@ with pkgs;
|
||||
|
||||
rocksdb = callPackage ../development/libraries/rocksdb { };
|
||||
|
||||
rocksdb_lite = rocksdb.override { enableLite = true; };
|
||||
|
||||
rote = callPackage ../development/libraries/rote { };
|
||||
|
||||
ronn = callPackage ../development/tools/ronn { };
|
||||
|
Loading…
Reference in New Issue
Block a user