Skip to content

Commit

Permalink
feat: Link jemalloc staticly
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Apr 10, 2024
1 parent 4334e9f commit a481e9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librocksdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ fn build_rocksdb() {
if cfg!(feature = "jemalloc") && NO_JEMALLOC_TARGETS.iter().all(|i| !target.contains(i)) {
config.define("ROCKSDB_JEMALLOC", Some("1"));
config.define("JEMALLOC_NO_DEMANGLE", Some("1"));
println!("cargo:rustc-link-lib=static=jemalloc");

if let Some(jemalloc_root) = env::var_os("DEP_JEMALLOC_ROOT") {
config.include(Path::new(&jemalloc_root).join("include"));
Expand Down

0 comments on commit a481e9d

Please sign in to comment.