Skip to content

Tracking Issue for -Z remap-cwd-prefix #89434

Description

@ehuss

This is a tracking issue for -Z remap-cwd-prefix which rewrites absolute paths in the current directory to the given value.

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Unresolved Questions

  • What is the relationship with RFC 3127?
  • Will this always be defined to be the same as --remap-path-prefix=$(pwd)=VALUE? That is, what gets remapped? Debug info, backtraces, compiler macros, coverage data, etc? What will happen if RFC 3127 results in separate mapping flags?
  • How does this interact with --remap-path-scope?

Implementation history

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    A-reproducibilityArea: Reproducible / deterministic builds
    on Oct 1, 2021
  2. fangism commented on Nov 1, 2021

    @fangism

    -Zremap-cwd-prefix=. has been working well for me. We no longer see build environment paths in the strings of the resulting crates and executables.

  3. cristifalcas commented on Jul 20, 2022

    @cristifalcas

    When will this go to stable flags?

  4. added
    A-CLIArea: Command-line interface (CLI) to the compiler
    on Mar 5, 2023
  5. added
    A-path-remappingArea: path remapping, --remap-path-prefix, --remap-cwd-prefix, --remap-diagnostics-scope etc.
    S-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.
    on Mar 23, 2025
  6. added 2 commits that reference this issue on Jun 12, 2026
  7. added a commit that references this issue on Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-path-remappingArea: path remapping, --remap-path-prefix, --remap-cwd-prefix, --remap-diagnostics-scope etc.A-reproducibilityArea: Reproducible / deterministic buildsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.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