Skip to content

Tracking issue for -Zdwarf-version #103057

Closed
@pnkfelix

Description

@pnkfelix
Member

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

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
thomcc

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)

Wyvern

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.

added
A-CLIArea: Command-line interface (CLI) to the compiler
on Mar 5, 2023

6 remaining items

added a commit that references this issue on Jan 30, 2025
added a commit that references this issue on Feb 7, 2025

Rollup merge of rust-lang#136659 - wesleywiser:dwarf_version_lto_merg…

ae905d4
added a commit that references this issue on Feb 8, 2025

Rollup merge of rust-lang#136746 - wesleywiser:err_dwarf1, r=Urgau

9d443d8
added 2 commits that reference this issue on Feb 8, 2025

Rollup merge of rust-lang#136659 - wesleywiser:dwarf_version_lto_merg…

1b81399

Rollup merge of rust-lang#136659 - wesleywiser:dwarf_version_lto_merg…

5ec56e5
added a commit that references this issue on Feb 9, 2025
added a commit that references this issue on Feb 9, 2025

Rollup merge of rust-lang#136746 - wesleywiser:err_dwarf1, r=Urgau

4b319bc
added a commit that references this issue on Feb 10, 2025
added a commit that references this issue on Apr 16, 2025

Rollup merge of rust-lang#136926 - wesleywiser:stabilize_dwarf-versio…

8213969
added a commit that references this issue on Apr 16, 2025

Auto merge of rust-lang#136926 - wesleywiser:stabilize_dwarf-version,…

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

      Participants

      @Wyvern@pnkfelix@wesleywiser@thomcc@fhanau

      Issue actions

        Tracking issue for `-Zdwarf-version` · Issue #103057 · rust-lang/rust