Separate --remap-path-prefix for diagnostics and debug info #73740
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-reproducibility
Area: Reproducible / deterministic builds
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://doc.rust-lang.org/rustc/command-line-arguments.html#--remap-path-prefix-remap-source-names-in-output
On Fuchsia, we have set up remapping for the purpose of debug info, which creates path relative to the build directory. However, when these paths are printed as part of compiler messages, CWD is usually a different directory, breaking "clickable" file/line references in e.g. VSCode. Thus, we'd benefit from having a separate path remapping for debug info and diagnostics. Perhaps this generalizes to more than these two cases?
The text was updated successfully, but these errors were encountered: