Actually take --build into account in bootstrap

I went back 20 *stable* versions of Rust and I couldn't find this flag actually being used. Despite some of our CI workflows actually set this flag (!).
This commit is contained in:
Jakub Beránek 2025-06-17 15:13:30 +02:00
parent 55d436467c
commit e19ec445e8
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -730,7 +730,9 @@ impl Config {
config.jobs = Some(threads_from_config(flags.jobs.unwrap_or(jobs.unwrap_or(0))));
if let Some(file_build) = build {
if let Some(flags_build) = flags.build {
config.host_target = TargetSelection::from_user(&flags_build);
} else if let Some(file_build) = build {
config.host_target = TargetSelection::from_user(&file_build);
};