Skip to content

Switch to LLD linker on Windows by default #15

@repi

Description

@repi

For our project we find using LLD instead 2x faster for full builds, and 5x faster for incremental builds, compared to the default MSVC linker. This is huge and essential for us, so we enable it manually in .cargo/config:

[target.x86_64-pc-windows-msvc]
linker = "lld-link.exe"

It would be nice if this was the default instead on Windows, esp. if it also made it possible to not have to install the Visual Studio Build Tools?

When using LLD Windows we do get this warning, but haven't been an issue for us:

warning: not embedding natvis: lld-link may not support the flag

Related umbrella issue in rust-gamedev WG: rust-gamedev/wg#50

Tracking issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    cargohave-workaroundIssues we have / are using a workaround for

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions