Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a DWARF version consistent with rustc #694

Merged
merged 1 commit into from Nov 10, 2022

Commits on Nov 10, 2022

  1. Use a DWARF version consistent with rustc

    Rustc defaults to DWARF-2 on some targets, and DWARF-4 on others.
    However using -g with the C compiler yields whatever default version the
    C compiler prefers.
    
    One side effect is that the DWARF debug info shipped in some libraries
    with rustc itself (e.g. libcompiler_builtins and others) have recently
    switched to DWARF-5 as a side effect of upgrading the clang version
    used on rustc CI. (rust-lang/rust#98746)
    
    Ideally, the preferred DWARF version would be given by the rust compiler
    and/or cargo, but that's not the case at the moment, so the next best
    thing is something that aligns with the current defaults, although
    work in under way to add a rustc flag that would allow to pick the
    preferred DWARF version (rust-lang/rust#98350)
    glandium committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    380d5d8 View commit details
    Browse the repository at this point in the history