Skip to content

Commit 084ad96

Browse files
committed
Fixed release build
1 parent 90646f1 commit 084ad96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmimalloc-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use cmake::Config;
22

33
#[cfg(feature = "no_secure")]
44
fn main() {
5-
let dst = Config::new("c_src/mimalloc")
5+
let mut dst = Config::new("c_src/mimalloc")
66
.build();
77

88
dst.push("build");
@@ -27,6 +27,6 @@ fn main() {
2727
if cfg!(debug_assertions) {
2828
println!("cargo:rustc-link-lib=static=mimalloc-debug");
2929
} else {
30-
println!("cargo:rustc-link-lib=static=mimalloc");
30+
println!("cargo:rustc-link-lib=static=mimalloc-secure");
3131
}
3232
}

0 commit comments

Comments
 (0)