Skip to content

Commit

Permalink
mingw add Bcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancinsight committed Mar 19, 2021
1 parent dcadf23 commit f4fff27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libmimalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ fn main() {

build.define("MI_STATIC_LIB", None);

let target_os = env::var("CARGO_CFG_TARGET_OS").expect("target_os not defined!");
let target_env = env::var("CARGO_CFG_TARGET_ENV").expect("target_env not defined!");

let target_os = env::var("CARGO_CFG_TARGET_OS").expect("target_os not defined!");

if cfg!(feature = "override") {
Expand Down Expand Up @@ -61,4 +64,7 @@ fn main() {
}

build.compile("mimalloc");
if (target_os == "windows") && (target_env == "gnu") {
println!("cargo:rustc-link-lib=bcrypt");
}
}

0 comments on commit f4fff27

Please sign in to comment.