You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(trim-paths): remap all paths to build.build-dir (#15614)
### What does this PR try to resolve?
Remap all paths pointing to `build.build-dir`,
i.e., `[BUILD_DIR]/debug/deps/foo-[HASH].dwo` would be remapped to
`/cargo/build-dir/debug/deps/foo-[HASH].dwo`
(note the `/cargo/build-dir` prefix).
This covers scenarios like:
* Build script generated code. For example, a build script may call
`file!`
macros, and the associated crate uses `include!` to include the expanded
`file!` macro in-place via the `OUT_DIR` environment.
* On Linux, `DW_AT_GNU_dwo_name` that contains paths to split debuginfo
files (dwp and dwo).
### How to test and review this PR?
Should be quite straightforward.
The open question is what we want to remap _to_, to help debugger to
find the source files.
cc #12137 and #13171
0 commit comments