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"]
30
30
override = [" libmimalloc-sys2/override" ]
31
31
local_dynamic_tls = [" libmimalloc-sys2/local_dynamic_tls" ]
32
32
no_thp = [" libmimalloc-sys2/no_thp" ]
33
+ no_opt_arch = [" libmimalloc-sys2/no_opt_arch" ]
33
34
extended = [" libmimalloc-sys2/extended" ]
34
35
skip_collect_on_exit = [" libmimalloc-sys2/skip_collect_on_exit" ]
35
36
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ arena = []
35
35
local_dynamic_tls = []
36
36
no_thp = []
37
37
skip_collect_on_exit = []
38
+ # turn off `MI_OPT_ARCH`, default is `ON`
39
+ no_opt_arch = []
38
40
39
41
# Show `extended` on docs.rs since it's the full API surface.
40
42
[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ fn main() {
38
38
cmake_config. define ( "MI_TRACK_ETW" , "ON" ) ;
39
39
}
40
40
41
+ if env:: var_os ( "CARGO_FEATURE_NO_OPT_ARCH" ) . is_some ( ) {
42
+ cmake_config. define ( "MI_OPT_ARCH" , "OFF" ) ;
43
+ }
44
+
41
45
// it's complicated to link ucrt in debug mode on windows
42
46
if profile == "debug" && target_env != "msvc" {
43
47
cmake_config
You can’t perform that action at this time.
0 commit comments