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"]
30
30
debug = [" libmimalloc-sys/debug" ]
31
31
debug_in_debug = [" libmimalloc-sys/debug_in_debug" ]
32
32
local_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 = []
33
33
extended = [" cty" ]
34
34
arena = []
35
35
local_dynamic_tls = []
36
+ no_thp = []
36
37
37
38
# Show `extended` on docs.rs since it's the full API surface.
38
39
[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ fn main() {
32
32
}
33
33
}
34
34
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
+
35
41
if env:: var_os ( "CARGO_FEATURE_DEBUG" ) . is_some ( )
36
42
|| ( env:: var_os ( "CARGO_FEATURE_DEBUG_IN_DEBUG" ) . is_some ( ) && cfg ! ( debug_assertions) )
37
43
{
You can’t perform that action at this time.
0 commit comments