File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,5 @@ default = ["secure"]
28
28
secure = [" libmimalloc-sys/secure" ]
29
29
override = [" libmimalloc-sys/override" ]
30
30
debug = [" libmimalloc-sys/debug" ]
31
+ debug_in_debug = [" libmimalloc-sys/debug_in_debug" ]
31
32
local_dynamic_tls = [" libmimalloc-sys/local_dynamic_tls" ]
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ cc = "1.0"
19
19
[features ]
20
20
secure = []
21
21
debug = []
22
+ debug_in_debug = []
22
23
override = []
23
24
extended = [" cty" ]
24
25
local_dynamic_tls = []
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ fn main() {
32
32
}
33
33
}
34
34
35
- if env:: var_os ( "CARGO_FEATURE_DEBUG" ) . is_some ( ) {
35
+ if env:: var_os ( "CARGO_FEATURE_DEBUG" ) . is_some ( )
36
+ || ( env:: var_os ( "CARGO_FEATURE_DEBUG_IN_DEBUG" ) . is_some ( ) && cfg ! ( debug_assertions) )
37
+ {
36
38
build. define ( "MI_DEBUG" , "3" ) ;
37
39
build. define ( "MI_SHOW_ERRORS" , "1" ) ;
38
40
} else {
You can’t perform that action at this time.
0 commit comments