Update rustc_codegen_cratelift for working_dir change
This commit is contained in:
parent
a895069c50
commit
179fd38bb5
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ impl<'tcx> DebugContext<'tcx> {
|
||||||
rustc_interface::util::version_str().unwrap_or("unknown version"),
|
rustc_interface::util::version_str().unwrap_or("unknown version"),
|
||||||
cranelift_codegen::VERSION,
|
cranelift_codegen::VERSION,
|
||||||
);
|
);
|
||||||
let comp_dir = tcx.sess.working_dir.to_string_lossy(false).into_owned();
|
let comp_dir = tcx.sess.opts.working_dir.to_string_lossy(false).into_owned();
|
||||||
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
|
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
|
||||||
Some(path) => {
|
Some(path) => {
|
||||||
let name = path.to_string_lossy().into_owned();
|
let name = path.to_string_lossy().into_owned();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue