We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c47102 commit 7b45056Copy full SHA for 7b45056
libmimalloc-sys/build.rs
@@ -6,12 +6,15 @@ fn main() {
6
build.include("c_src/mimalloc/include");
7
build.include("c_src/mimalloc/src");
8
build.file("c_src/mimalloc/src/static.c");
9
- build.flag("-Wno-error=date-time");
10
11
let target_os = env::var("CARGO_CFG_TARGET_OS").expect("target_os not defined!");
12
let target_family = env::var("CARGO_CFG_TARGET_FAMILY").expect("target_family not defined!");
13
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").expect("target_arch not defined!");
14
+ if target_family != "windows" {
15
+ build.flag("-Wno-error=date-time");
16
+ }
17
+
18
if env::var_os("CARGO_FEATURE_OVERRIDE").is_some() {
19
// Overriding malloc is only available on windows in shared mode, but we
20
// only ever build a static lib.
0 commit comments