File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ secure = ["libmimalloc-sys2/secure"]
3030override = [" libmimalloc-sys2/override" ]
3131local_dynamic_tls = [" libmimalloc-sys2/local_dynamic_tls" ]
3232no_thp = [" libmimalloc-sys2/no_thp" ]
33+ no_opt_arch = [" libmimalloc-sys2/no_opt_arch" ]
3334extended = [" libmimalloc-sys2/extended" ]
3435skip_collect_on_exit = [" libmimalloc-sys2/skip_collect_on_exit" ]
3536
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ arena = []
3535local_dynamic_tls = []
3636no_thp = []
3737skip_collect_on_exit = []
38+ # turn off `MI_OPT_ARCH`, default is `ON`
39+ no_opt_arch = []
3840
3941# Show `extended` on docs.rs since it's the full API surface.
4042[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ fn main() {
3838 cmake_config. define ( "MI_TRACK_ETW" , "ON" ) ;
3939 }
4040
41+ if env:: var_os ( "CARGO_FEATURE_NO_OPT_ARCH" ) . is_some ( ) {
42+ cmake_config. define ( "MI_OPT_ARCH" , "OFF" ) ;
43+ }
44+
4145 // it's complicated to link ucrt in debug mode on windows
4246 if profile == "debug" && target_env != "msvc" {
4347 cmake_config
You can’t perform that action at this time.
0 commit comments