Skip to content

Commit ac5272b

Browse files
committed
Use RealFileName for Session::working_dir as it may also be remapped
1 parent 0a1b87c commit ac5272b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'tcx> DebugContext<'tcx> {
6464
// FIXME: how to get version when building out of tree?
6565
// Normally this would use option_env!("CFG_VERSION").
6666
let producer = format!("cg_clif (rustc {})", "unknown version");
67-
let comp_dir = tcx.sess.working_dir.0.to_string_lossy().into_owned();
67+
let comp_dir = tcx.sess.working_dir.stable_name().to_string_lossy().into_owned();
6868
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
6969
Some(path) => {
7070
let name = path.to_string_lossy().into_owned();

0 commit comments

Comments
 (0)