Skip to content

Commit

Permalink
gate malloc-usable-size to linux only
Browse files Browse the repository at this point in the history
zaidoon1 committed Feb 26, 2024
1 parent 100d7ae commit d2aa8b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion librocksdb-sys/build.rs
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ fn build_rocksdb() {
config.define("USE_RTTI", Some("1"));
}

if cfg!(feature = "malloc-usable-size") {
#[cfg(feature = "malloc-usable-size")]
if target.contains("linux") {
config.define("ROCKSDB_MALLOC_USABLE_SIZE", Some("1"));
}

0 comments on commit d2aa8b5

Please sign in to comment.