@@ -77,8 +77,6 @@ pub struct Config {
77
77
pub local_rebuild : bool ,
78
78
79
79
// libstd features
80
- pub debug_jemalloc : bool ,
81
- pub use_jemalloc : bool ,
82
80
pub backtrace : bool , // support for RUST_BACKTRACE
83
81
84
82
// misc
@@ -101,7 +99,6 @@ pub struct Config {
101
99
#[ derive( Default ) ]
102
100
pub struct Target {
103
101
pub llvm_config : Option < PathBuf > ,
104
- pub jemalloc : Option < PathBuf > ,
105
102
pub cc : Option < PathBuf > ,
106
103
pub cxx : Option < PathBuf > ,
107
104
pub ndk : Option < PathBuf > ,
@@ -179,8 +176,6 @@ struct Rust {
179
176
debug_assertions : Option < bool > ,
180
177
debuginfo : Option < bool > ,
181
178
debuginfo_lines : Option < bool > ,
182
- debug_jemalloc : Option < bool > ,
183
- use_jemalloc : Option < bool > ,
184
179
backtrace : Option < bool > ,
185
180
default_linker : Option < String > ,
186
181
default_ar : Option < String > ,
@@ -196,7 +191,6 @@ struct Rust {
196
191
#[ derive( RustcDecodable , Default ) ]
197
192
struct TomlTarget {
198
193
llvm_config : Option < String > ,
199
- jemalloc : Option < String > ,
200
194
cc : Option < String > ,
201
195
cxx : Option < String > ,
202
196
android_ndk : Option < String > ,
@@ -207,7 +201,6 @@ impl Config {
207
201
pub fn parse ( build : & str , file : Option < PathBuf > ) -> Config {
208
202
let mut config = Config :: default ( ) ;
209
203
config. llvm_optimize = true ;
210
- config. use_jemalloc = true ;
211
204
config. backtrace = true ;
212
205
config. rust_optimize = true ;
213
206
config. rust_optimize_tests = true ;
@@ -303,8 +296,6 @@ impl Config {
303
296
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
304
297
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
305
298
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 ) ;
308
299
set ( & mut config. backtrace , rust. backtrace ) ;
309
300
set ( & mut config. channel , rust. channel . clone ( ) ) ;
310
301
config. rustc_default_linker = rust. default_linker . clone ( ) ;
@@ -325,9 +316,6 @@ impl Config {
325
316
if let Some ( ref s) = cfg. llvm_config {
326
317
target. llvm_config = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
327
318
}
328
- if let Some ( ref s) = cfg. jemalloc {
329
- target. jemalloc = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
330
- }
331
319
if let Some ( ref s) = cfg. android_ndk {
332
320
target. ndk = Some ( env:: current_dir ( ) . unwrap ( ) . join ( s) ) ;
333
321
}
@@ -390,8 +378,6 @@ impl Config {
390
378
( "DEBUG_ASSERTIONS" , self . rust_debug_assertions) ,
391
379
( "DEBUGINFO" , self . rust_debuginfo) ,
392
380
( "DEBUGINFO_LINES" , self . rust_debuginfo_lines) ,
393
- ( "JEMALLOC" , self . use_jemalloc) ,
394
- ( "DEBUG_JEMALLOC" , self . debug_jemalloc) ,
395
381
( "RPATH" , self . rust_rpath) ,
396
382
( "OPTIMIZE_TESTS" , self . rust_optimize_tests) ,
397
383
( "DEBUGINFO_TESTS" , self . rust_debuginfo_tests) ,
@@ -476,11 +462,6 @@ impl Config {
476
462
let root = parse_configure_path ( value) ;
477
463
target. llvm_config = Some ( push_exe_path ( root, & [ "bin" , "llvm-config" ] ) ) ;
478
464
}
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
- }
484
465
"CFG_ARM_LINUX_ANDROIDEABI_NDK" if value. len ( ) > 0 => {
485
466
let target = "arm-linux-androideabi" . to_string ( ) ;
486
467
let target = self . target_config . entry ( target)
0 commit comments