@@ -77,8 +77,6 @@ pub struct Config {
7777 pub local_rebuild : bool ,
7878
7979 // libstd features
80- pub debug_jemalloc : bool ,
81- pub use_jemalloc : bool ,
8280 pub backtrace : bool , // support for RUST_BACKTRACE
8381
8482 // misc
@@ -101,7 +99,6 @@ pub struct Config {
10199#[ derive( Default ) ]
102100pub struct Target {
103101 pub llvm_config : Option < PathBuf > ,
104- pub jemalloc : Option < PathBuf > ,
105102 pub cc : Option < PathBuf > ,
106103 pub cxx : Option < PathBuf > ,
107104 pub ndk : Option < PathBuf > ,
@@ -179,8 +176,6 @@ struct Rust {
179176 debug_assertions : Option < bool > ,
180177 debuginfo : Option < bool > ,
181178 debuginfo_lines : Option < bool > ,
182- debug_jemalloc : Option < bool > ,
183- use_jemalloc : Option < bool > ,
184179 backtrace : Option < bool > ,
185180 default_linker : Option < String > ,
186181 default_ar : Option < String > ,
@@ -196,7 +191,6 @@ struct Rust {
196191#[ derive( RustcDecodable , Default ) ]
197192struct TomlTarget {
198193 llvm_config : Option < String > ,
199- jemalloc : Option < String > ,
200194 cc : Option < String > ,
201195 cxx : Option < String > ,
202196 android_ndk : Option < String > ,
@@ -207,7 +201,6 @@ impl Config {
207201 pub fn parse ( build : & str , file : Option < PathBuf > ) -> Config {
208202 let mut config = Config :: default ( ) ;
209203 config. llvm_optimize = true ;
210- config. use_jemalloc = true ;
211204 config. backtrace = true ;
212205 config. rust_optimize = true ;
213206 config. rust_optimize_tests = true ;
@@ -303,8 +296,6 @@ impl Config {
303296 set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
304297 set ( & mut config. codegen_tests , rust. codegen_tests ) ;
305298 set ( & mut config. rust_rpath , rust. rpath ) ;
306- set ( & mut config. debug_jemalloc , rust. debug_jemalloc ) ;
307- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
308299 set ( & mut config. backtrace , rust. backtrace ) ;
309300 set ( & mut config. channel , rust. channel . clone ( ) ) ;
310301 config. rustc_default_linker = rust. default_linker . clone ( ) ;
@@ -325,9 +316,6 @@ impl Config {
325316 if let Some ( ref s) = cfg. llvm_config {
326317 target. llvm_config = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
327318 }
328- if let Some ( ref s) = cfg. jemalloc {
329- target. jemalloc = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
330- }
331319 if let Some ( ref s) = cfg. android_ndk {
332320 target. ndk = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
333321 }
@@ -390,8 +378,6 @@ impl Config {
390378 ( "DEBUG_ASSERTIONS" , self . rust_debug_assertions) ,
391379 ( "DEBUGINFO" , self . rust_debuginfo) ,
392380 ( "DEBUGINFO_LINES" , self . rust_debuginfo_lines) ,
393- ( "JEMALLOC" , self . use_jemalloc) ,
394- ( "DEBUG_JEMALLOC" , self . debug_jemalloc) ,
395381 ( "RPATH" , self . rust_rpath) ,
396382 ( "OPTIMIZE_TESTS" , self . rust_optimize_tests) ,
397383 ( "DEBUGINFO_TESTS" , self . rust_debuginfo_tests) ,
@@ -476,11 +462,6 @@ impl Config {
476462 let root = parse_configure_path ( value) ;
477463 target. llvm_config = Some ( push_exe_path ( root, & [ "bin" , "llvm-config" ] ) ) ;
478464 }
479- "CFG_JEMALLOC_ROOT" if value. len ( ) > 0 => {
480- let target = self . target_config . entry ( self . build . clone ( ) )
481- . or_insert ( Target :: default ( ) ) ;
482- target. jemalloc = Some ( parse_configure_path ( value) ) ;
483- }
484465 "CFG_ARM_LINUX_ANDROIDEABI_NDK" if value. len ( ) > 0 => {
485466 let target = "arm-linux-androideabi" . to_string ( ) ;
486467 let target = self . target_config . entry ( target)
0 commit comments