File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ crate-type = ["cdylib"]
1111[dependencies ]
1212numpy = " 0.28"
1313pyo3 = { version = " 0.28" , features = [" extension-module" ] }
14- mimalloc = { version = " *" , features = [" v3" ] }
1514memmap2 = " 0.9"
1615lexical-core = " 1"
1716
17+ [target .'cfg(not(all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm"))))' .dependencies ]
18+ mimalloc = { version = " *" , features = [" v3" ] }
19+
1820[profile .release ]
1921lto = " fat"
2022codegen-units = 1
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ use numpy::{
77use pyo3:: { exceptions:: PyValueError , prelude:: * } ;
88use std:: fs:: File ;
99
10+ #[ cfg( not( all( target_os = "linux" , any( target_arch = "aarch64" , target_arch = "arm" ) ) ) ) ]
1011use mimalloc:: MiMalloc ;
1112
13+ #[ cfg( not( all( target_os = "linux" , any( target_arch = "aarch64" , target_arch = "arm" ) ) ) ) ]
1214#[ global_allocator]
1315static GLOBAL : MiMalloc = MiMalloc ;
1416
You can’t perform that action at this time.
0 commit comments