@@ -115,15 +115,14 @@ pub struct Config {
115
115
pub hosts : Vec < Interned < String > > ,
116
116
pub targets : Vec < Interned < String > > ,
117
117
pub local_rebuild : bool ,
118
+ pub jemalloc : bool ,
118
119
119
120
// dist misc
120
121
pub dist_sign_folder : Option < PathBuf > ,
121
122
pub dist_upload_addr : Option < String > ,
122
123
pub dist_gpg_password_file : Option < PathBuf > ,
123
124
124
125
// libstd features
125
- pub debug_jemalloc : bool ,
126
- pub use_jemalloc : bool ,
127
126
pub backtrace : bool , // support for RUST_BACKTRACE
128
127
pub wasm_syscall : bool ,
129
128
@@ -165,7 +164,6 @@ pub struct Target {
165
164
pub llvm_config : Option < PathBuf > ,
166
165
/// Some(path to FileCheck) if one was specified.
167
166
pub llvm_filecheck : Option < PathBuf > ,
168
- pub jemalloc : Option < PathBuf > ,
169
167
pub cc : Option < PathBuf > ,
170
168
pub cxx : Option < PathBuf > ,
171
169
pub ar : Option < PathBuf > ,
@@ -262,7 +260,7 @@ struct Llvm {
262
260
link_jobs : Option < u32 > ,
263
261
link_shared : Option < bool > ,
264
262
version_suffix : Option < String > ,
265
- clang_cl : Option < String >
263
+ clang_cl : Option < String > ,
266
264
}
267
265
268
266
#[ derive( Deserialize , Default , Clone ) ]
@@ -300,8 +298,6 @@ struct Rust {
300
298
debuginfo_only_std : Option < bool > ,
301
299
debuginfo_tools : Option < bool > ,
302
300
experimental_parallel_queries : Option < bool > ,
303
- debug_jemalloc : Option < bool > ,
304
- use_jemalloc : Option < bool > ,
305
301
backtrace : Option < bool > ,
306
302
default_linker : Option < String > ,
307
303
channel : Option < String > ,
@@ -327,6 +323,7 @@ struct Rust {
327
323
backtrace_on_ice : Option < bool > ,
328
324
verify_llvm_ir : Option < bool > ,
329
325
remap_debuginfo : Option < bool > ,
326
+ jemalloc : Option < bool > ,
330
327
}
331
328
332
329
/// TOML representation of how each build target is configured.
@@ -335,7 +332,6 @@ struct Rust {
335
332
struct TomlTarget {
336
333
llvm_config : Option < String > ,
337
334
llvm_filecheck : Option < String > ,
338
- jemalloc : Option < String > ,
339
335
cc : Option < String > ,
340
336
cxx : Option < String > ,
341
337
ar : Option < String > ,
@@ -361,7 +357,6 @@ impl Config {
361
357
config. llvm_enabled = true ;
362
358
config. llvm_optimize = true ;
363
359
config. llvm_version_check = true ;
364
- config. use_jemalloc = true ;
365
360
config. backtrace = true ;
366
361
config. rust_optimize = true ;
367
362
config. rust_optimize_tests = true ;
@@ -497,7 +492,6 @@ impl Config {
497
492
let mut debuginfo_only_std = None ;
498
493
let mut debuginfo_tools = None ;
499
494
let mut debug = None ;
500
- let mut debug_jemalloc = None ;
501
495
let mut debuginfo = None ;
502
496
let mut debug_assertions = None ;
503
497
let mut optimize = None ;
@@ -539,12 +533,11 @@ impl Config {
539
533
debuginfo_tools = rust. debuginfo_tools ;
540
534
optimize = rust. optimize ;
541
535
ignore_git = rust. ignore_git ;
542
- debug_jemalloc = rust. debug_jemalloc ;
543
536
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
544
537
set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
545
538
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
546
539
set ( & mut config. rust_rpath , rust. rpath ) ;
547
- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
540
+ set ( & mut config. jemalloc , rust. jemalloc ) ;
548
541
set ( & mut config. backtrace , rust. backtrace ) ;
549
542
set ( & mut config. channel , rust. channel . clone ( ) ) ;
550
543
set ( & mut config. rust_dist_src , rust. dist_src ) ;
@@ -592,9 +585,6 @@ impl Config {
592
585
if let Some ( ref s) = cfg. llvm_filecheck {
593
586
target. llvm_filecheck = Some ( config. src . join ( s) ) ;
594
587
}
595
- if let Some ( ref s) = cfg. jemalloc {
596
- target. jemalloc = Some ( config. src . join ( s) ) ;
597
- }
598
588
if let Some ( ref s) = cfg. android_ndk {
599
589
target. ndk = Some ( config. src . join ( s) ) ;
600
590
}
@@ -640,7 +630,6 @@ impl Config {
640
630
config. rust_debuginfo_tools = debuginfo_tools. unwrap_or ( false ) ;
641
631
642
632
let default = debug == Some ( true ) ;
643
- config. debug_jemalloc = debug_jemalloc. unwrap_or ( default) ;
644
633
config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
645
634
config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
646
635
0 commit comments