File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,4 @@ override = ["libmimalloc-sys/override"]
3030debug = [" libmimalloc-sys/debug" ]
3131debug_in_debug = [" libmimalloc-sys/debug_in_debug" ]
3232local_dynamic_tls = [" libmimalloc-sys/local_dynamic_tls" ]
33+ no_thp = [" libmimalloc-sys/no_thp" ]
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ override = []
3333extended = [" cty" ]
3434arena = []
3535local_dynamic_tls = []
36+ no_thp = []
3637
3738# Show `extended` on docs.rs since it's the full API surface.
3839[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ fn main() {
3232 }
3333 }
3434
35+ if ( target_os == "linux" || target_os == "android" )
36+ && env:: var_os ( "CARGO_FEATURE_NO_THP" ) . is_some ( )
37+ {
38+ build. define ( "MI_NO_THP" , "1" ) ;
39+ }
40+
3541 if env:: var_os ( "CARGO_FEATURE_DEBUG" ) . is_some ( )
3642 || ( env:: var_os ( "CARGO_FEATURE_DEBUG_IN_DEBUG" ) . is_some ( ) && cfg ! ( debug_assertions) )
3743 {
You can’t perform that action at this time.
0 commit comments