Commit ba0ed5b 1 parent 6f839fb commit ba0ed5b Copy full SHA for ba0ed5b
File tree 5 files changed +15
-15
lines changed
5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2214,6 +2214,7 @@ dependencies = [
2214
2214
name = " rustc-main"
2215
2215
version = " 0.0.0"
2216
2216
dependencies = [
2217
+ " jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" ,
2217
2218
" rustc_codegen_ssa 0.0.0" ,
2218
2219
" rustc_driver 0.0.0" ,
2219
2220
" rustc_target 0.0.0" ,
@@ -2400,7 +2401,6 @@ dependencies = [
2400
2401
" arena 0.0.0" ,
2401
2402
" env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)" ,
2402
2403
" graphviz 0.0.0" ,
2403
- " jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" ,
2404
2404
" log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" ,
2405
2405
" rustc 0.0.0" ,
2406
2406
" rustc-rayon 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" ,
Original file line number Diff line number Diff line change @@ -38,8 +38,3 @@ syntax = { path = "../libsyntax" }
38
38
smallvec = { version = " 0.6.7" , features = [" union" , " may_dangle" ] }
39
39
syntax_ext = { path = " ../libsyntax_ext" }
40
40
syntax_pos = { path = " ../libsyntax_pos" }
41
-
42
- [dependencies .jemalloc-sys ]
43
- version = ' 0.1.8'
44
- optional = true
45
- features = [' unprefixed_malloc_on_supported_platforms' ]
Original file line number Diff line number Diff line change @@ -64,14 +64,6 @@ extern crate syntax;
64
64
extern crate syntax_ext;
65
65
extern crate syntax_pos;
66
66
67
- // Note that the linkage here should be all that we need, on Linux we're not
68
- // prefixing the symbols here so this should naturally override our default
69
- // allocator. On OSX it should override via the zone allocator. We shouldn't
70
- // enable this by default on other platforms, so other platforms aren't handled
71
- // here yet.
72
- #[ cfg( feature = "jemalloc-sys" ) ]
73
- extern crate jemalloc_sys;
74
-
75
67
use driver:: CompileController ;
76
68
use pretty:: { PpMode , UserIdentifiedItem } ;
77
69
Original file line number Diff line number Diff line change @@ -15,5 +15,10 @@ rustc_driver = { path = "../librustc_driver" }
15
15
# crate is intended to be used by codegen backends, which may not be in-tree.
16
16
rustc_codegen_ssa = { path = " ../librustc_codegen_ssa" }
17
17
18
+ [dependencies .jemalloc-sys ]
19
+ version = ' 0.1.8'
20
+ optional = true
21
+ features = [' unprefixed_malloc_on_supported_platforms' ]
22
+
18
23
[features ]
19
- jemalloc = [' rustc_driver/ jemalloc-sys' ]
24
+ jemalloc = [' jemalloc-sys' ]
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ extern {}
23
23
24
24
extern crate rustc_driver;
25
25
26
+ // Note that the linkage here should be all that we need, on Linux we're not
27
+ // prefixing the symbols here so this should naturally override our default
28
+ // allocator. On OSX it should override via the zone allocator. We shouldn't
29
+ // enable this by default on other platforms, so other platforms aren't handled
30
+ // here yet.
31
+ #[ cfg( feature = "jemalloc-sys" ) ]
32
+ extern crate jemalloc_sys;
33
+
26
34
fn main ( ) {
27
35
rustc_driver:: set_sigpipe_handler ( ) ;
28
36
rustc_driver:: main ( )
You can’t perform that action at this time.
0 commit comments