Skip to content

Commit

Permalink
Add portable feature for RocksDB build
Browse files Browse the repository at this point in the history
  • Loading branch information
sujayakar authored and zaidoon1 committed Mar 15, 2024
1 parent 1cf906d commit eeab5d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ bzip2 = ["librocksdb-sys/bzip2"]
rtti = ["librocksdb-sys/rtti"]
multi-threaded-cf = []
serde1 = ["serde"]
portable = ["librocksdb-sys/portable"]

[dependencies]
libc = "0.2"
Expand Down
1 change: 1 addition & 0 deletions librocksdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ zstd = ["zstd-sys"]
zlib = ["libz-sys"]
bzip2 = ["bzip2-sys"]
rtti = []
portable = []

[dependencies]
libc = "0.2"
Expand Down
4 changes: 4 additions & 0 deletions librocksdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ fn build_rocksdb() {
config.define("USE_RTTI", Some("1"));
}

if cfg!(feature = "portable") {
config.define("PORTABLE", Some("1"));
}

config.include(".");
config.define("NDEBUG", Some("1"));

Expand Down

0 comments on commit eeab5d8

Please sign in to comment.