Skip to content

Use rust-lld on Windows#4650

Open
user1823 wants to merge 1 commit intoankitects:mainfrom
user1823:lld
Open

Use rust-lld on Windows#4650
user1823 wants to merge 1 commit intoankitects:mainfrom
user1823:lld

Conversation

@user1823
Copy link
Copy Markdown
Contributor

@user1823 user1823 commented Mar 29, 2026

Results in noticeably faster linking

This slashed build time for RELEASE=2 by nearly half on my system. (~750 seconds → ~420 seconds)

Results in noticeably faster linking
@abdnh
Copy link
Copy Markdown
Collaborator

abdnh commented Mar 30, 2026

There was almost no difference for me but no objections to enabling it. Looks like it'll become the default soon:

rust-lang/rust#71520

https://blog.rust-lang.org/2025/09/01/rust-lld-on-1.90.0-stable/

Curious if you're building on Windows natively? I think you used to build in WSL: #4142 (comment)

@user1823
Copy link
Copy Markdown
Contributor Author

user1823 commented Mar 30, 2026

Yeah, I have been building natively on Windows for a few months now as it allows me to build wheels for my fork (https://github.com/user1823/anki/tree/my_feature_branch) for regular use.

There was almost no difference for me but no objections to enabling it.

In my case, the first build wasn't faster because it had to recompile all crates and their dependencies from scratch. However, subsequent builds after making small changes in rslib were noticeably faster as I mentioned in my OP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants