@@ -117,8 +117,6 @@ pub struct Config {
117117 pub dist_gpg_password_file : Option < PathBuf > ,
118118
119119 // libstd features
120- pub debug_jemalloc : bool ,
121- pub use_jemalloc : bool ,
122120 pub backtrace : bool , // support for RUST_BACKTRACE
123121 pub wasm_syscall : bool ,
124122
@@ -157,7 +155,6 @@ pub struct Config {
157155pub struct Target {
158156 /// Some(path to llvm-config) if using an external LLVM.
159157 pub llvm_config : Option < PathBuf > ,
160- pub jemalloc : Option < PathBuf > ,
161158 pub cc : Option < PathBuf > ,
162159 pub cxx : Option < PathBuf > ,
163160 pub ar : Option < PathBuf > ,
@@ -288,8 +285,6 @@ struct Rust {
288285 debuginfo_only_std : Option < bool > ,
289286 debuginfo_tools : Option < bool > ,
290287 experimental_parallel_queries : Option < bool > ,
291- debug_jemalloc : Option < bool > ,
292- use_jemalloc : Option < bool > ,
293288 backtrace : Option < bool > ,
294289 default_linker : Option < String > ,
295290 channel : Option < String > ,
@@ -319,7 +314,6 @@ struct Rust {
319314#[ serde( deny_unknown_fields, rename_all = "kebab-case" ) ]
320315struct TomlTarget {
321316 llvm_config : Option < String > ,
322- jemalloc : Option < String > ,
323317 cc : Option < String > ,
324318 cxx : Option < String > ,
325319 ar : Option < String > ,
@@ -344,7 +338,6 @@ impl Config {
344338 config. llvm_enabled = true ;
345339 config. llvm_optimize = true ;
346340 config. llvm_version_check = true ;
347- config. use_jemalloc = true ;
348341 config. backtrace = true ;
349342 config. rust_optimize = true ;
350343 config. rust_optimize_tests = true ;
@@ -479,7 +472,6 @@ impl Config {
479472 let mut debuginfo_only_std = None ;
480473 let mut debuginfo_tools = None ;
481474 let mut debug = None ;
482- let mut debug_jemalloc = None ;
483475 let mut debuginfo = None ;
484476 let mut debug_assertions = None ;
485477 let mut optimize = None ;
@@ -519,12 +511,10 @@ impl Config {
519511 debuginfo_tools = rust. debuginfo_tools ;
520512 optimize = rust. optimize ;
521513 ignore_git = rust. ignore_git ;
522- debug_jemalloc = rust. debug_jemalloc ;
523514 set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
524515 set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
525516 set ( & mut config. codegen_tests , rust. codegen_tests ) ;
526517 set ( & mut config. rust_rpath , rust. rpath ) ;
527- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
528518 set ( & mut config. backtrace , rust. backtrace ) ;
529519 set ( & mut config. channel , rust. channel . clone ( ) ) ;
530520 set ( & mut config. rust_dist_src , rust. dist_src ) ;
@@ -566,9 +556,6 @@ impl Config {
566556 if let Some ( ref s) = cfg. llvm_config {
567557 target. llvm_config = Some ( config. src . join ( s) ) ;
568558 }
569- if let Some ( ref s) = cfg. jemalloc {
570- target. jemalloc = Some ( config. src . join ( s) ) ;
571- }
572559 if let Some ( ref s) = cfg. android_ndk {
573560 target. ndk = Some ( config. src . join ( s) ) ;
574561 }
@@ -609,7 +596,6 @@ impl Config {
609596 config. rust_debuginfo_tools = debuginfo_tools. unwrap_or ( false ) ;
610597
611598 let default = debug == Some ( true ) ;
612- config. debug_jemalloc = debug_jemalloc. unwrap_or ( default) ;
613599 config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
614600 config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
615601 config. rust_optimize = optimize. unwrap_or ( !default) ;
0 commit comments