Skip to content

Add an equivalent to -grecord-command-line/-grecord-gcc-switches #133224

Open
@khuey

Description

@khuey

Other widely used compilers (gcc, clang, etc) have the ability to record their command line arguments in the debug information (for DWARF in the DW_AT_producer field). Rustc currently hardcodes this to "" when calling LLVMRustDIBuilderCreateCompileUnit.

@rustbot label +A-debuginfo +WG-debugging

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-debuggingWorking group: Bad Rust debugging experiences

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions