Skip to content

--remap-path-prefix has no effect #87805

Closed
@Sebi2020

Description

@Sebi2020

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:

  1. Build a lib or program on windows with rustc 1.54.0 and msvc with --remap-path-prefix in .cargo/config.toml (project directory)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions