diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-20 20:58:35 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 20:58:35 +0100 | 
| commit | c8c5fa4893a6835ca8e799539e4315b4261261c0 (patch) | |
| tree | 70e67a81fb2b6b5428e3b6297acde88ef209947f /compiler/rustc_interface/src/tests.rs | |
| parent | bbec1510bbdd3363a02f3e42291c7efa9c439735 (diff) | |
| parent | 056a9cebe97b52e5da1e35ba98d56050c5fc4a7a (diff) | |
| download | rust-c8c5fa4893a6835ca8e799539e4315b4261261c0.tar.gz rust-c8c5fa4893a6835ca8e799539e4315b4261261c0.zip | |
Rollup merge of #135330 - bjorn3:respect_sysroot_in_version_printing, r=lqd
Respect --sysroot for rustc -vV and -Cpasses=list This is necessary when the specified codegen backend is in a custom sysroot. Fixes https://github.com/rust-lang/rust/issues/135165
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 07c4b898721..d7370c1ff53 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -42,7 +42,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 { | 
