about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2021-02-14 17:12:14 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2021-02-14 17:12:14 +0200
commit16c71886c9ed143a22890f99c59deea37b157fa8 (patch)
tree2f9bab15b8902a932ff3d59adaa6b3211852c4b4 /compiler/rustc_codegen_llvm/src/lib.rs
parent3158857297417566824631a85c4cb3c0615ec6c2 (diff)
downloadrust-16c71886c9ed143a22890f99c59deea37b157fa8.tar.gz
rust-16c71886c9ed143a22890f99c59deea37b157fa8.zip
Set path of the compile unit to the source directory
As part of the effort to implement split dwarf debug info, we ended up
setting the compile unit location to the output directory rather than
the source directory. Furthermore, it seems like we failed to remap the
prefixes for this as well!

The desired behaviour is to instead set the `DW_AT_GNU_dwo_name` to a
path relative to compiler's working directory. This still allows
debuggers to find the split dwarf files, while not changing the
behaviour of the code that is compiling with regular debug info, and not
changing the compiler's behaviour with regards to reproducibility.

Fixes #82074
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions