@@ -242,7 +242,7 @@ pub struct Config {
242242 pub hosts : Vec < TargetSelection > ,
243243 pub targets : Vec < TargetSelection > ,
244244 pub local_rebuild : bool ,
245- pub jemalloc : bool ,
245+ pub override_allocator : bool ,
246246 pub control_flow_guard : bool ,
247247 pub ehcont_guard : bool ,
248248
@@ -570,7 +570,7 @@ impl Config {
570570 thin_lto_import_instr_limit : rust_thin_lto_import_instr_limit,
571571 parallel_frontend_threads : rust_parallel_frontend_threads,
572572 remap_debuginfo : rust_remap_debuginfo,
573- jemalloc : rust_jemalloc ,
573+ override_allocator : rust_override_allocator ,
574574 test_compare_mode : rust_test_compare_mode,
575575 llvm_libunwind : rust_llvm_libunwind,
576576 control_flow_guard : rust_control_flow_guard,
@@ -900,7 +900,7 @@ impl Config {
900900 codegen_backends : target_codegen_backends,
901901 runner : target_runner,
902902 optimized_compiler_builtins : target_optimized_compiler_builtins,
903- jemalloc : target_jemalloc ,
903+ override_allocator : target_override_allocator ,
904904 } = cfg;
905905
906906 let mut target = Target :: from_triple ( & triple) ;
@@ -976,7 +976,7 @@ impl Config {
976976 target. rpath = target_rpath;
977977 target. rustflags = target_rustflags. unwrap_or_default ( ) ;
978978 target. optimized_compiler_builtins = target_optimized_compiler_builtins;
979- target. jemalloc = target_jemalloc ;
979+ target. override_allocator = target_override_allocator ;
980980 if let Some ( backends) = target_codegen_backends {
981981 target. codegen_backends =
982982 Some ( parse_codegen_backends ( backends, & format ! ( "target.{triple}" ) ) )
@@ -1365,7 +1365,7 @@ impl Config {
13651365 initial_rustdoc,
13661366 initial_rustfmt,
13671367 initial_sysroot,
1368- jemalloc : rust_jemalloc . unwrap_or ( false ) ,
1368+ override_allocator : rust_override_allocator . unwrap_or ( false ) ,
13691369 jobs : Some ( threads_from_config ( flags_jobs. or ( build_jobs) . unwrap_or ( 0 ) ) ) ,
13701370 json_output : flags_json_output,
13711371 keep_stage : flags_keep_stage,
@@ -1858,8 +1858,8 @@ impl Config {
18581858 self . enabled_codegen_backends ( target) . first ( ) . unwrap ( )
18591859 }
18601860
1861- pub fn jemalloc ( & self , target : TargetSelection ) -> bool {
1862- self . target_config . get ( & target) . and_then ( |cfg| cfg. jemalloc ) . unwrap_or ( self . jemalloc )
1861+ pub fn override_allocator ( & self , target : TargetSelection ) -> bool {
1862+ self . target_config . get ( & target) . and_then ( |cfg| cfg. override_allocator ) . unwrap_or ( self . override_allocator )
18631863 }
18641864
18651865 pub fn rpath_enabled ( & self , target : TargetSelection ) -> bool {
0 commit comments