diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-06-17 15:13:30 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-06-17 15:13:30 +0200 |
| commit | e19ec445e81a4ce363ad0e9d225c2b02ecf9ec91 (patch) | |
| tree | 003443de15091c2fa9cce276706ab945cb47db16 | |
| parent | 55d436467c351b56253deeba209ae2553d1c243f (diff) | |
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 (!).
| -rw-r--r-- | src/bootstrap/src/core/config/config.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index f9980ac5fe1..aa39c04cb70 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -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); }; |
