Closed
Description
Remap source path prefixes in all output, including compiler diagnostics, debug information, macro expansions, etc.
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?