@@ -868,14 +868,14 @@ impl Config {
868
868
build_jobs = flags_jobs. or ( build_jobs) ;
869
869
build_build = flags_build. or ( build_build) ;
870
870
871
- let build_dir = flags_build_dir. or ( build_build_dir. map ( PathBuf :: from) ) ;
872
- let host = if let Some ( TargetSelectionList ( hosts) ) = flags_host {
871
+ let build_dir_ = flags_build_dir. or ( build_build_dir. map ( PathBuf :: from) ) ;
872
+ let host_ = if let Some ( TargetSelectionList ( hosts) ) = flags_host {
873
873
Some ( hosts)
874
874
} else {
875
875
build_host
876
876
. map ( |file_host| file_host. iter ( ) . map ( |h| TargetSelection :: from_user ( h) ) . collect ( ) )
877
877
} ;
878
- let target = if let Some ( TargetSelectionList ( targets) ) = flags_target {
878
+ let target_ = if let Some ( TargetSelectionList ( targets) ) = flags_target {
879
879
Some ( targets)
880
880
} else {
881
881
build_target. map ( |file_target| {
@@ -971,7 +971,7 @@ impl Config {
971
971
host_target = TargetSelection :: from_user ( & build) ;
972
972
}
973
973
974
- set ( & mut out, build_dir ) ;
974
+ set ( & mut out, build_dir_ ) ;
975
975
// NOTE: Bootstrap spawns various commands with different working directories.
976
976
// To avoid writing to random places on the file system, `config.out` needs to be an absolute path.
977
977
if !out. is_absolute ( ) {
@@ -1051,8 +1051,8 @@ impl Config {
1051
1051
out = dir;
1052
1052
}
1053
1053
1054
- hosts = if let Some ( hosts) = host { hosts } else { vec ! [ host_target] } ;
1055
- targets = if let Some ( targets) = target {
1054
+ hosts = if let Some ( hosts) = host_ { hosts } else { vec ! [ host_target] } ;
1055
+ targets = if let Some ( targets) = target_ {
1056
1056
targets
1057
1057
} else {
1058
1058
// If target is *not* configured, then default to the host
0 commit comments