about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-20 15:47:26 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-20 15:47:26 +0000
commit056a9cebe97b52e5da1e35ba98d56050c5fc4a7a (patch)
tree0e1dd6aa74c406e0effa8a76f16d619fe44dfcb2 /compiler/rustc_interface/src/interface.rs
parent3b6e3642cec8eebc7e9f88442a9d971287df3f6a (diff)
downloadrust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.tar.gz
rust-056a9cebe97b52e5da1e35ba98d56050c5fc4a7a.zip
Respect --target in get_backend_from_raw_matches
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
-rw-r--r--compiler/rustc_interface/src/interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
index 1456255ea14..1971c637563 100644
--- a/compiler/rustc_interface/src/interface.rs
+++ b/compiler/rustc_interface/src/interface.rs
@@ -383,7 +383,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
     crate::callbacks::setup_callbacks();
 
     let sysroot = filesearch::materialize_sysroot(config.opts.maybe_sysroot.clone());
-    let target = config::build_target_config(&early_dcx, &config.opts, &sysroot);
+    let target = config::build_target_config(&early_dcx, &config.opts.target_triple, &sysroot);
     let file_loader = config.file_loader.unwrap_or_else(|| Box::new(RealFileLoader));
     let path_mapping = config.opts.file_path_mapping();
     let hash_kind = config.opts.unstable_opts.src_hash_algorithm(&target);