Closed
Description
I tried this code: Not applicable
I expected to see this happen: --remap-path-prefix should rewrite paths to the new prefix, but fails.
Instead, this happened: Paths are still persistent in the binary or rlib
Meta
Steps to reproduce:
- Build a lib or program on windows with rustc 1.54.0 and msvc with --remap-path-prefix in .cargo/config.toml (project directory)
- Path prefix is not applied. Old paths still present in binary and/or rlib.
I tried C:\path\to\project and C:/path/to/project in the from path. Both failed to work.
rustc --version --verbose
:
binary: rustc
commit-hash: a178d0322ce20e33eac124758e837cbd80a6f633
commit-date: 2021-07-26
host: x86_64-pc-windows-msvc
release: 1.54.0
LLVM version: 12.0.1
Backtrace: Not applicable