Skip to content

Commit eff2109

Browse files
authored
Merge pull request #139 from reigadegr/master
Fix mimalloc build failure with musl and release mode
2 parents 44c72c7 + 7b45056 commit eff2109

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libmimalloc-sys/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ fn main() {
1111
let target_family = env::var("CARGO_CFG_TARGET_FAMILY").expect("target_family not defined!");
1212
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").expect("target_arch not defined!");
1313

14+
if target_family != "windows" {
15+
build.flag("-Wno-error=date-time");
16+
}
17+
1418
if env::var_os("CARGO_FEATURE_OVERRIDE").is_some() {
1519
// Overriding malloc is only available on windows in shared mode, but we
1620
// only ever build a static lib.

0 commit comments

Comments
 (0)