File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ rustc_codegen_ssa = { path = "../librustc_codegen_ssa" }
2222# features = ['unprefixed_malloc_on_supported_platforms']
2323
2424[dependencies .mimalloc-sys ]
25- version = ' 0.1'
25+ version = ' 0.1.4 '
2626optional = true
2727
2828[features ]
29- jemalloc = [' mimalloc-sys' ]
29+ jemalloc = [' mimalloc-sys' , ' mimalloc-sys/override ' ]
Original file line number Diff line number Diff line change 11fn main ( ) {
2- // Pull in jemalloc when enabled.
2+ // Pull in mimalloc when enabled.
33 //
4- // Note that we're pulling in a static copy of jemalloc which means that to
4+ // Note that we're pulling in a static copy of mimalloc which means that to
55 // pull it in we need to actually reference its symbols for it to get
66 // linked. The two crates we link to here, std and rustc_driver, are both
7- // dynamic libraries. That means to pull in jemalloc we need to actually
7+ // dynamic libraries. That means to pull in mimalloc we need to actually
88 // reference allocation symbols one way or another (as this file is the only
99 // object code in the rustc executable).
10- #[ cfg( feature = "jemalloc -sys" ) ]
10+ #[ cfg( feature = "mimalloc -sys" ) ]
1111 {
1212 use std:: os:: raw:: { c_void, c_int} ;
1313
You can’t perform that action at this time.
0 commit comments