@@ -665,9 +665,6 @@ impl Config {
665
665
exec_ctx. set_verbosity ( cmp:: max ( build_verbose. unwrap_or_default ( ) as u8 , flags_verbose) ) ;
666
666
667
667
let stage0_metadata = build_helper:: stage0_parser:: parse_stage0_file ( ) ;
668
- let bootstrap_cache_path = build_bootstrap_cache_path;
669
- let patch_binaries_for_nix = build_patch_binaries_for_nix;
670
-
671
668
let path_modification_cache = Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) ;
672
669
673
670
let host_target = flags_build
@@ -681,7 +678,6 @@ impl Config {
681
678
} )
682
679
. unwrap_or_else ( || vec ! [ host_target] ) ;
683
680
684
- let submodules = build_submodules;
685
681
let llvm_assertions = llvm_assertions_. unwrap_or ( false ) ;
686
682
687
683
let mut target_config = HashMap :: new ( ) ;
@@ -739,17 +735,17 @@ impl Config {
739
735
path_modification_cache : path_modification_cache. clone ( ) ,
740
736
src : & src,
741
737
rust_info : rust_info. clone ( ) ,
742
- submodules : & submodules ,
738
+ submodules : & build_submodules ,
743
739
download_rustc_commit : download_rustc_commit. clone ( ) ,
744
740
host_target,
745
741
llvm_from_ci,
746
742
target_config : target_config. clone ( ) ,
747
743
out : out. clone ( ) ,
748
- patch_binaries_for_nix,
744
+ patch_binaries_for_nix : build_patch_binaries_for_nix ,
749
745
exec_ctx : & exec_ctx,
750
746
stage0_metadata : & stage0_metadata,
751
747
llvm_assertions,
752
- bootstrap_cache_path : & bootstrap_cache_path ,
748
+ bootstrap_cache_path : & build_bootstrap_cache_path ,
753
749
is_running_on_ci,
754
750
} ;
755
751
@@ -873,7 +869,7 @@ impl Config {
873
869
}
874
870
if let Some ( patches) = cfg. llvm_has_rust_patches {
875
871
assert ! (
876
- submodules == Some ( false ) || cfg. llvm_config. is_some( ) ,
872
+ build_submodules == Some ( false ) || cfg. llvm_config. is_some( ) ,
877
873
"use of `llvm-has-rust-patches` is restricted to cases where either submodules are disabled or llvm-config been provided"
878
874
) ;
879
875
target. llvm_has_rust_patches = Some ( patches) ;
@@ -1131,7 +1127,7 @@ impl Config {
1131
1127
docs : build_docs. unwrap_or ( true ) ,
1132
1128
locked_deps : build_locked_deps. unwrap_or ( false ) ,
1133
1129
full_bootstrap : build_full_bootstrap. unwrap_or ( false ) ,
1134
- bootstrap_cache_path,
1130
+ bootstrap_cache_path : build_bootstrap_cache_path ,
1135
1131
extended : build_extended. unwrap_or ( false ) ,
1136
1132
tools : build_tools,
1137
1133
tool : build_tool. unwrap_or_default ( ) ,
@@ -1341,15 +1337,16 @@ impl Config {
1341
1337
&& src. join ( "vendor" ) . exists ( )
1342
1338
&& src. join ( ".cargo/config.toml" ) . exists ( ) ,
1343
1339
) ,
1340
+ patch_binaries_for_nix : build_patch_binaries_for_nix,
1344
1341
cmd : flags_cmd,
1342
+ submodules : build_submodules,
1345
1343
exec_ctx,
1346
1344
out,
1347
1345
rust_info,
1348
1346
initial_cargo,
1349
1347
initial_rustc,
1350
1348
initial_sysroot,
1351
1349
initial_rustfmt,
1352
- submodules,
1353
1350
target_config,
1354
1351
omit_git_hash,
1355
1352
stage,
@@ -1362,7 +1359,6 @@ impl Config {
1362
1359
channel,
1363
1360
is_running_on_ci,
1364
1361
path_modification_cache,
1365
- patch_binaries_for_nix,
1366
1362
stage0_metadata,
1367
1363
download_rustc_commit,
1368
1364
llvm_link_shared,
0 commit comments