This is a feature request. With -Zremap-path-scope
, it's possible to change the scope for --remap-path-prefix
. However, it only applies to one scope. I would like to be able to remap multiple scopes.
For example, I would like to be able to shorten the path that's present in the resulting binaries. This would allow for both reproducible builds and to reduce paths within the resulting binary image when file!()
is used.
Separately, I would like to remap the path present for libstd when building with -Zbuild-std
. With normal libstd, paths are replaced with /rust/
, and I would like to do this for debug symbols and diagnostic outputs, but given that -Zbuild-std
may be in the same directory as the rest of the project I don't want to apply the same rules to libstd.
Finally, due to `--remap-path-prefix FROM=TO` creates invalid paths if `TO` doesn't start with `/` · Issue #137016 · rust-lang/rust · GitHub I would like to have debugsymbols start with /
but diagnostic output to not have a leading /
so that control-click can work within vscode.
I'm not sure of where this should go, so please let me know if this is in an incorrect place. The Tracking Issue says to post discussion on a new Github Issue, but I'm posting here since it's essentially a feature request and that's what the submission form on Github says to do.