@@ -122,8 +122,6 @@ pub struct Config {
122
122
pub dist_gpg_password_file : Option < PathBuf > ,
123
123
124
124
// libstd features
125
- pub debug_jemalloc : bool ,
126
- pub use_jemalloc : bool ,
127
125
pub backtrace : bool , // support for RUST_BACKTRACE
128
126
pub wasm_syscall : bool ,
129
127
@@ -165,7 +163,6 @@ pub struct Target {
165
163
pub llvm_config : Option < PathBuf > ,
166
164
/// Some(path to FileCheck) if one was specified.
167
165
pub llvm_filecheck : Option < PathBuf > ,
168
- pub jemalloc : Option < PathBuf > ,
169
166
pub cc : Option < PathBuf > ,
170
167
pub cxx : Option < PathBuf > ,
171
168
pub ar : Option < PathBuf > ,
@@ -300,8 +297,6 @@ struct Rust {
300
297
debuginfo_only_std : Option < bool > ,
301
298
debuginfo_tools : Option < bool > ,
302
299
experimental_parallel_queries : Option < bool > ,
303
- debug_jemalloc : Option < bool > ,
304
- use_jemalloc : Option < bool > ,
305
300
backtrace : Option < bool > ,
306
301
default_linker : Option < String > ,
307
302
channel : Option < String > ,
@@ -335,7 +330,6 @@ struct Rust {
335
330
struct TomlTarget {
336
331
llvm_config : Option < String > ,
337
332
llvm_filecheck : Option < String > ,
338
- jemalloc : Option < String > ,
339
333
cc : Option < String > ,
340
334
cxx : Option < String > ,
341
335
ar : Option < String > ,
@@ -361,7 +355,6 @@ impl Config {
361
355
config. llvm_enabled = true ;
362
356
config. llvm_optimize = true ;
363
357
config. llvm_version_check = true ;
364
- config. use_jemalloc = true ;
365
358
config. backtrace = true ;
366
359
config. rust_optimize = true ;
367
360
config. rust_optimize_tests = true ;
@@ -497,7 +490,6 @@ impl Config {
497
490
let mut debuginfo_only_std = None ;
498
491
let mut debuginfo_tools = None ;
499
492
let mut debug = None ;
500
- let mut debug_jemalloc = None ;
501
493
let mut debuginfo = None ;
502
494
let mut debug_assertions = None ;
503
495
let mut optimize = None ;
@@ -539,12 +531,10 @@ impl Config {
539
531
debuginfo_tools = rust. debuginfo_tools ;
540
532
optimize = rust. optimize ;
541
533
ignore_git = rust. ignore_git ;
542
- debug_jemalloc = rust. debug_jemalloc ;
543
534
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
544
535
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
545
536
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
546
537
set ( & mut config. rust_rpath , rust. rpath ) ;
547
- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
548
538
set ( & mut config. backtrace , rust. backtrace ) ;
549
539
set ( & mut config. channel , rust. channel . clone ( ) ) ;
550
540
set ( & mut config. rust_dist_src , rust. dist_src ) ;
@@ -592,9 +582,6 @@ impl Config {
592
582
if let Some ( ref s) = cfg. llvm_filecheck {
593
583
target. llvm_filecheck = Some ( config. src . join ( s) ) ;
594
584
}
595
- if let Some ( ref s) = cfg. jemalloc {
596
- target. jemalloc = Some ( config. src . join ( s) ) ;
597
- }
598
585
if let Some ( ref s) = cfg. android_ndk {
599
586
target. ndk = Some ( config. src . join ( s) ) ;
600
587
}
@@ -640,7 +627,6 @@ impl Config {
640
627
config. rust_debuginfo_tools = debuginfo_tools. unwrap_or ( false ) ;
641
628
642
629
let default = debug == Some ( true ) ;
643
- config. debug_jemalloc = debug_jemalloc. unwrap_or ( default) ;
644
630
config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
645
631
config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
646
632
0 commit comments