Skip to content

Commit e19ec44

Browse files
committed
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 (!).
1 parent 55d4364 commit e19ec44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,9 @@ impl Config {
730730

731731
config.jobs = Some(threads_from_config(flags.jobs.unwrap_or(jobs.unwrap_or(0))));
732732

733-
if let Some(file_build) = build {
733+
if let Some(flags_build) = flags.build {
734+
config.host_target = TargetSelection::from_user(&flags_build);
735+
} else if let Some(file_build) = build {
734736
config.host_target = TargetSelection::from_user(&file_build);
735737
};
736738

0 commit comments

Comments
 (0)