Skip to content

Tracking issue for -Zdwarf-version #103057

Closed

Description

@pnkfelix

This is a tracking issue for the -Zdwarf-version unstable flag (no RFC/MCP) added in #98350 which allows selecting the specific version of DWARF to use when creating debuginfo.

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.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

Unresolved Questions

  • Is the pre-compiled standard library (potentially) using a different version of DWARF an issue?
  • What should the behavior of the flag do when the active target does not use DWARF?

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
    S-tracking-needs-design-proposalStatus: This needs a clear design proposal and then a meeting with the team.
    on Oct 14, 2022
  2. thomcc commented on Nov 10, 2022

    @thomcc
    Member

    Ideally this design proposal would include some method of exposing it to cargo build scripts, so crates like cc would be able to use the right version of DWARF (see rust-lang/cc-rs#694, for example, where we hardcode decisions compatible with rustc)

  3. Wyvern commented on Feb 3, 2023

    @Wyvern

    Is there a unstable way to opt-in DWARF5 for Rust now?
    Tried -Zdwarf-version=5 in macOS, but seems failed.

  4. added
    A-CLIArea: Command-line interface (CLI) to the compiler
    on Mar 5, 2023
  5. fhanau commented on Dec 24, 2024

    @fhanau

    As of Xcode 16 DWARFv5 is used by default when targeting macOS 15 or higher, LLVM also defaults to 5 on Linux for most architectures. Hopefully the defaults can be updated to what LLVM is doing soon. This is especially helpful when using linker plugin LTO to link Rust and C++ code together, which produces lots of LLD warnings when there are mismatching Rust versions.

  6. changed the title [-]provide way to users to opt into DWARF5 on stable Rust[/-] [+]Tracking issue for `-Zdwarf-version`[/+] on Jan 19, 2025
  7. added 2 commits that reference this issue on Jan 30, 2025
  8. added a commit that references this issue on Jan 30, 2025
  9. added a commit that references this issue on Feb 7, 2025
  10. added a commit that references this issue on Feb 8, 2025
  11. added 2 commits that reference this issue on Feb 8, 2025
  12. added a commit that references this issue on Feb 9, 2025
  13. added a commit that references this issue on Feb 9, 2025
  14. added a commit that references this issue on Feb 10, 2025
  15. added a commit that references this issue on Apr 16, 2025
  16. added a commit that references this issue on Apr 16, 2025
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

    -Zdwarf-versionUnstable option: set dwarf versionA-CLIArea: Command-line interface (CLI) to the compilerC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-needs-design-proposalStatus: This needs a clear design proposal and then a meeting with the team.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