Skip to content

Investigate using /debug:fastlink #37101

@retep998

Description

@retep998

VS 2015 adds a new linker argument /debug:fastlink which saves time by not actually putting symbol information inside the PDB but instead simply references the object files and libraries provided as input. VS "15" makes it even faster. However, this does require that all the object files and libraries are still around when debugging the binary, and I believe rustc currently disposes of the object file immediately after passing it to the linker.

For more information, including some performance numbers:
https://blogs.msdn.microsoft.com/vcblog/2016/10/05/faster-c-build-cycle-in-vs-15-with-debugfastlink/

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-linkageArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.O-windows-msvcToolchain: MSVC, Operating system: WindowsP-mediumMedium priorityT-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

    No branches or pull requests

    Issue actions