diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-01-26 18:33:45 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-01-26 18:33:45 +0000 |
| commit | 0061bb7faf34f89f0227757a04566fe319455eed (patch) | |
| tree | cef2245b866dedcaabf5882b08d427f372258fde /src/debuginfo | |
| parent | b192f911d5c861030be528d5caa962f887780b38 (diff) | |
| download | rust-0061bb7faf34f89f0227757a04566fe319455eed.tar.gz rust-0061bb7faf34f89f0227757a04566fe319455eed.zip | |
Merge commit '3e50cf65025f96854d6597e80449b0d64ad89589' into sync_cg_clif-2024-01-26
Diffstat (limited to 'src/debuginfo')
| -rw-r--r-- | src/debuginfo/mod.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index e6edc452cfb..2d9c2ecdbc2 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -13,17 +13,14 @@ use gimli::write::{ }; use gimli::{Encoding, Format, LineEncoding, RunTimeEndian}; use indexmap::IndexSet; +use rustc_session::Session; pub(crate) use self::emit::{DebugReloc, DebugRelocName}; pub(crate) use self::unwind::UnwindContext; use crate::prelude::*; -pub(crate) fn producer() -> String { - format!( - "rustc version {} with cranelift {}", - rustc_interface::util::rustc_version_str().unwrap_or("unknown version"), - cranelift_codegen::VERSION, - ) +pub(crate) fn producer(sess: &Session) -> String { + format!("rustc version {} with cranelift {}", sess.cfg_version, cranelift_codegen::VERSION) } pub(crate) struct DebugContext { @@ -67,7 +64,7 @@ impl DebugContext { let should_remap_filepaths = tcx.sess.should_prefer_remapped_for_codegen(); - let producer = producer(); + let producer = producer(tcx.sess); let comp_dir = tcx .sess .opts |
