Skip to content

Commit cf6409f

Browse files
committed
Update mimalloc-sys version; fix typo in rustc that was preventing mimalloc from being enabled
1 parent 23a20c3 commit cf6409f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/rustc/Cargo.toml

+2-2
Original file line numberDiff line numberDiff 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'
2626
optional = true
2727

2828
[features]
29-
jemalloc = ['mimalloc-sys']
29+
jemalloc = ['mimalloc-sys', 'mimalloc-sys/override']

src/rustc/rustc.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
fn 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

0 commit comments

Comments
 (0)