diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-20 15:47:26 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-20 15:47:26 +0000 |
| commit | 056a9cebe97b52e5da1e35ba98d56050c5fc4a7a (patch) | |
| tree | 0e1dd6aa74c406e0effa8a76f16d619fe44dfcb2 /compiler/rustc_session | |
| parent | 3b6e3642cec8eebc7e9f88442a9d971287df3f6a (diff) | |
| download | rust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.tar.gz rust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.zip | |
Respect --target in get_backend_from_raw_matches
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 5c36c986490..f1c08a6de60 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -1353,8 +1353,12 @@ pub fn build_configuration(sess: &Session, mut user_cfg: Cfg) -> Cfg { user_cfg } -pub fn build_target_config(early_dcx: &EarlyDiagCtxt, opts: &Options, sysroot: &Path) -> Target { - match Target::search(&opts.target_triple, sysroot) { +pub fn build_target_config( + early_dcx: &EarlyDiagCtxt, + target: &TargetTuple, + sysroot: &Path, +) -> Target { + match Target::search(target, sysroot) { Ok((target, warnings)) => { for warning in warnings.warning_messages() { early_dcx.early_warn(warning) |
