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