@@ -117,8 +117,6 @@ pub struct Config {
117
117
pub dist_gpg_password_file : Option < PathBuf > ,
118
118
119
119
// libstd features
120
- pub debug_jemalloc : bool ,
121
- pub use_jemalloc : bool ,
122
120
pub backtrace : bool , // support for RUST_BACKTRACE
123
121
pub wasm_syscall : bool ,
124
122
@@ -157,7 +155,6 @@ pub struct Config {
157
155
pub struct Target {
158
156
/// Some(path to llvm-config) if using an external LLVM.
159
157
pub llvm_config : Option < PathBuf > ,
160
- pub jemalloc : Option < PathBuf > ,
161
158
pub cc : Option < PathBuf > ,
162
159
pub cxx : Option < PathBuf > ,
163
160
pub ar : Option < PathBuf > ,
@@ -288,8 +285,6 @@ struct Rust {
288
285
debuginfo_only_std : Option < bool > ,
289
286
debuginfo_tools : Option < bool > ,
290
287
experimental_parallel_queries : Option < bool > ,
291
- debug_jemalloc : Option < bool > ,
292
- use_jemalloc : Option < bool > ,
293
288
backtrace : Option < bool > ,
294
289
default_linker : Option < String > ,
295
290
channel : Option < String > ,
@@ -319,7 +314,6 @@ struct Rust {
319
314
#[ serde( deny_unknown_fields, rename_all = "kebab-case" ) ]
320
315
struct TomlTarget {
321
316
llvm_config : Option < String > ,
322
- jemalloc : Option < String > ,
323
317
cc : Option < String > ,
324
318
cxx : Option < String > ,
325
319
ar : Option < String > ,
@@ -344,7 +338,6 @@ impl Config {
344
338
config. llvm_enabled = true ;
345
339
config. llvm_optimize = true ;
346
340
config. llvm_version_check = true ;
347
- config. use_jemalloc = true ;
348
341
config. backtrace = true ;
349
342
config. rust_optimize = true ;
350
343
config. rust_optimize_tests = true ;
@@ -479,7 +472,6 @@ impl Config {
479
472
let mut debuginfo_only_std = None ;
480
473
let mut debuginfo_tools = None ;
481
474
let mut debug = None ;
482
- let mut debug_jemalloc = None ;
483
475
let mut debuginfo = None ;
484
476
let mut debug_assertions = None ;
485
477
let mut optimize = None ;
@@ -519,12 +511,10 @@ impl Config {
519
511
debuginfo_tools = rust. debuginfo_tools ;
520
512
optimize = rust. optimize ;
521
513
ignore_git = rust. ignore_git ;
522
- debug_jemalloc = rust. debug_jemalloc ;
523
514
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
524
515
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
525
516
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
526
517
set ( & mut config. rust_rpath , rust. rpath ) ;
527
- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
528
518
set ( & mut config. backtrace , rust. backtrace ) ;
529
519
set ( & mut config. channel , rust. channel . clone ( ) ) ;
530
520
set ( & mut config. rust_dist_src , rust. dist_src ) ;
@@ -566,9 +556,6 @@ impl Config {
566
556
if let Some ( ref s) = cfg. llvm_config {
567
557
target. llvm_config = Some ( config. src . join ( s) ) ;
568
558
}
569
- if let Some ( ref s) = cfg. jemalloc {
570
- target. jemalloc = Some ( config. src . join ( s) ) ;
571
- }
572
559
if let Some ( ref s) = cfg. android_ndk {
573
560
target. ndk = Some ( config. src . join ( s) ) ;
574
561
}
@@ -609,7 +596,6 @@ impl Config {
609
596
config. rust_debuginfo_tools = debuginfo_tools. unwrap_or ( false ) ;
610
597
611
598
let default = debug == Some ( true ) ;
612
- config. debug_jemalloc = debug_jemalloc. unwrap_or ( default) ;
613
599
config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
614
600
config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
615
601
config. rust_optimize = optimize. unwrap_or ( !default) ;
0 commit comments