diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-05-06 23:20:04 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-05-25 08:25:15 +0200 |
| commit | adab1350e76dea8a8af4d062fcad518980673643 (patch) | |
| tree | 47ea26ac06e4228e665c3d171af5f8beb4ed4124 /compiler/rustc | |
| parent | 9fadabc879e0b16214e8216c1a63a597d1d5d36b (diff) | |
| download | rust-adab1350e76dea8a8af4d062fcad518980673643.tar.gz rust-adab1350e76dea8a8af4d062fcad518980673643.zip | |
update jemalloc-sys to jemalloc v5.3
Diffstat (limited to 'compiler/rustc')
| -rw-r--r-- | compiler/rustc/Cargo.toml | 6 | ||||
| -rw-r--r-- | compiler/rustc/src/main.rs | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/compiler/rustc/Cargo.toml b/compiler/rustc/Cargo.toml index b642e891956..5e0bb1a7f95 100644 --- a/compiler/rustc/Cargo.toml +++ b/compiler/rustc/Cargo.toml @@ -10,13 +10,13 @@ rustc_driver = { path = "../rustc_driver" } # crate is intended to be used by codegen backends, which may not be in-tree. rustc_codegen_ssa = { path = "../rustc_codegen_ssa" } -[dependencies.tikv-jemalloc-sys] -version = '0.4.0' +[dependencies.jemalloc-sys] +version = "0.5.0" optional = true features = ['unprefixed_malloc_on_supported_platforms'] [features] -jemalloc = ['tikv-jemalloc-sys'] +jemalloc = ['jemalloc-sys'] llvm = ['rustc_driver/llvm'] max_level_info = ['rustc_driver/max_level_info'] rustc_use_parallel_compiler = ['rustc_driver/rustc_use_parallel_compiler'] diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs index 4edd095af10..0de1a781913 100644 --- a/compiler/rustc/src/main.rs +++ b/compiler/rustc/src/main.rs @@ -22,12 +22,10 @@ // The two crates we link to here, `std` and `rustc_driver`, are both dynamic // libraries. So we must reference jemalloc symbols one way or another, because // this file is the only object code in the rustc executable. -#[cfg(feature = "tikv-jemalloc-sys")] -use tikv_jemalloc_sys as jemalloc_sys; fn main() { // See the comment at the top of this file for an explanation of this. - #[cfg(feature = "tikv-jemalloc-sys")] + #[cfg(feature = "jemalloc-sys")] { use std::os::raw::{c_int, c_void}; |
