File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,15 @@ fn main() {
6
6
build. include ( "c_src/mimalloc/include" ) ;
7
7
build. include ( "c_src/mimalloc/src" ) ;
8
8
build. file ( "c_src/mimalloc/src/static.c" ) ;
9
- build. flag ( "-Wno-error=date-time" ) ;
10
9
11
10
let target_os = env:: var ( "CARGO_CFG_TARGET_OS" ) . expect ( "target_os not defined!" ) ;
12
11
let target_family = env:: var ( "CARGO_CFG_TARGET_FAMILY" ) . expect ( "target_family not defined!" ) ;
13
12
let target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . expect ( "target_arch not defined!" ) ;
14
13
14
+ if target_family != "windows" {
15
+ build. flag ( "-Wno-error=date-time" ) ;
16
+ }
17
+
15
18
if env:: var_os ( "CARGO_FEATURE_OVERRIDE" ) . is_some ( ) {
16
19
// Overriding malloc is only available on windows in shared mode, but we
17
20
// only ever build a static lib.
You can’t perform that action at this time.
0 commit comments