Skip to content

Commit 76afdbc

Browse files
committed
Add jemalloc-sys to rustc_driver
1 parent 635cb31 commit 76afdbc

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

src/Cargo.lock

+18
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,11 @@ dependencies = [
775775
"winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
776776
]
777777

778+
[[package]]
779+
name = "fs_extra"
780+
version = "1.1.0"
781+
source = "registry+https://github.com/rust-lang/crates.io-index"
782+
778783
[[package]]
779784
name = "fst"
780785
version = "0.3.0"
@@ -996,6 +1001,16 @@ name = "itoa"
9961001
version = "0.4.3"
9971002
source = "registry+https://github.com/rust-lang/crates.io-index"
9981003

1004+
[[package]]
1005+
name = "jemalloc-sys"
1006+
version = "0.1.8"
1007+
source = "registry+https://github.com/rust-lang/crates.io-index"
1008+
dependencies = [
1009+
"cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
1010+
"fs_extra 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
1011+
"libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)",
1012+
]
1013+
9991014
[[package]]
10001015
name = "jobserver"
10011016
version = "0.1.11"
@@ -2181,6 +2196,7 @@ dependencies = [
21812196
"arena 0.0.0",
21822197
"env_logger 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)",
21832198
"graphviz 0.0.0",
2199+
"jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
21842200
"log 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
21852201
"rustc 0.0.0",
21862202
"rustc-rayon 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3229,6 +3245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32293245
"checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
32303246
"checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
32313247
"checksum fs2 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
3248+
"checksum fs_extra 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2a4a2034423744d2cc7ca2068453168dcdb82c438419e639a26bd87839c674"
32323249
"checksum fst 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d94485a00b1827b861dd9d1a2cc9764f9044d4c535514c0760a5a2012ef3399f"
32333250
"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
32343251
"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
@@ -3252,6 +3269,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32523269
"checksum isatty 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6c324313540cd4d7ba008d43dc6606a32a5579f13cc17b2804c13096f0a5c522"
32533270
"checksum itertools 0.7.8 (registry+https://github.com/rust-lang/crates.io-index)" = "f58856976b776fedd95533137617a02fb25719f40e7d9b01c7043cd65474f450"
32543271
"checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b"
3272+
"checksum jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "bfc62c8e50e381768ce8ee0428ee53741929f7ebd73e4d83f669bcf7693e00ae"
32553273
"checksum jobserver 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "60af5f849e1981434e4a31d3d782c4774ae9b434ce55b101a96ecfd09147e8be"
32563274
"checksum json 0.11.13 (registry+https://github.com/rust-lang/crates.io-index)" = "9ad0485404155f45cce53a40d4b2d6ac356418300daed05273d9e26f91c390be"
32573275
"checksum jsonrpc-core 8.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ddf83704f4e79979a424d1082dd2c1e52683058056c9280efa19ac5f6bc9033c"

src/liballoc_jemalloc/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ authors = ["The Rust Project Developers"]
33
name = "alloc_jemalloc"
44
version = "0.0.0"
55
build = "build.rs"
6-
links = "jemalloc"
76

87
[lib]
98
name = "alloc_jemalloc"

src/librustc_driver/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ syntax = { path = "../libsyntax" }
3838
smallvec = { version = "0.6.5", features = ["union"] }
3939
syntax_ext = { path = "../libsyntax_ext" }
4040
syntax_pos = { path = "../libsyntax_pos" }
41+
jemalloc-sys = { version = "0.1.8", features = ['unprefixed_malloc_on_supported_platforms'] }
42+

src/librustc_driver/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
#![recursion_limit="256"]
3232

33+
extern crate jemalloc_sys;
34+
3335
extern crate arena;
3436
pub extern crate getopts;
3537
extern crate graphviz;

0 commit comments

Comments
 (0)