Skip to content

Commit

Permalink
downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewan committed Sep 7, 2022
1 parent 4815925 commit 62e0fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jemallocator/jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ fn main() {
println!("cargo:rustc-cfg=prefixed");
}

println!("cargo:rustc-link-lib={}={}", "dylib", "preload_syscallee");
let preload_syscalee = env::var_os("PRELOAD_SYSCALLEE").unwrap();
println!("cargo:rustc-link-search={}", preload_syscalee.to_str().unwrap());
println!("cargo:rustc-link-lib={}={}", "static", "preload_syscallee");
if let Some(jemalloc) = env::var_os("JEMALLOC_OVERRIDE") {
info!("jemalloc override set");
let jemalloc = PathBuf::from(jemalloc);
Expand Down
2 changes: 1 addition & 1 deletion preload-syscallee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Jan Bujak <j@exia.io>"]
edition = "2018"

[lib]
crate-type = ["cdylib"]
crate-type = ["staticlib"]

[dependencies]
parking_lot = { version = "0.12" }
Expand Down

0 comments on commit 62e0fef

Please sign in to comment.