Skip to content

debuginfo: Add a "nodebug" attribute that allows to exclude functions from debuginfo generation. #15332

Closed
@michaelwoerister

Description

@michaelwoerister

Right now debuginfo can only be turned on or off globally. Sometimes it would be good to be able to exclude only specific functions from debuginfo, especially when they trigger a bug in rustc's or LLVM's debuginfo handling (e.g. #14930). This way, one would be able to still mostly use debuginfo in the presence of (localized) debuginfo issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions