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"]
2828secure = [" libmimalloc-sys/secure" ]
2929override = [" libmimalloc-sys/override" ]
3030debug = [" libmimalloc-sys/debug" ]
31+ debug_in_debug = [" libmimalloc-sys/debug_in_debug" ]
3132local_dynamic_tls = [" libmimalloc-sys/local_dynamic_tls" ]
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ cc = "1.0"
1919[features ]
2020secure = []
2121debug = []
22+ debug_in_debug = []
2223override = []
2324extended = [" cty" ]
2425local_dynamic_tls = []
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ fn main() {
3232 }
3333 }
3434
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+ {
3638 build. define ( "MI_DEBUG" , "3" ) ;
3739 build. define ( "MI_SHOW_ERRORS" , "1" ) ;
3840 } else {
You can’t perform that action at this time.
0 commit comments