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_interface/src/tests.rs | |
| parent | 3b6e3642cec8eebc7e9f88442a9d971287df3f6a (diff) | |
| download | rust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.tar.gz rust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.zip | |
Respect --target in get_backend_from_raw_matches
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 53d7c84ac3f..7d996702395 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -41,7 +41,8 @@ where let matches = optgroups().parse(args).unwrap(); let sessopts = build_session_options(&mut early_dcx, &matches); let sysroot = filesearch::materialize_sysroot(sessopts.maybe_sysroot.clone()); - let target = rustc_session::config::build_target_config(&early_dcx, &sessopts, &sysroot); + let target = + rustc_session::config::build_target_config(&early_dcx, &sessopts.target_triple, &sysroot); let hash_kind = sessopts.unstable_opts.src_hash_algorithm(&target); let checksum_hash_kind = sessopts.unstable_opts.checksum_hash_algorithm(); let sm_inputs = Some(SourceMapInputs { |
