Skip to content

Unneeded PDB files generated for proc_macro and build script. #12695

@crlf0710

Description

@crlf0710

Problem

I'm using 1.72.0 toolchain now, but it seems debuginfo is still generated. I created a blank binary crate(dummy) and added the ref-cast = "1" dependency. Now when building with cargo build --release, there's four pdb files generated:

  • dummy.pdb which may or may not be necessary.
  • ref_cast_impl-76ca1ba5cac1102e.pdb which is for the proc-macro.
  • build_script_build-6a4abe8b3691b295.pdb which is for the ref-cast build.rs script
  • build_script_build-9201a10d7023ee91.pdb which is for the proc-macro2 build.rs script

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuggingArea: debug builds and debugging generated codeC-bugCategory: bugS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions