fix(rust): use rust-lld linker for MSVC (#9641)

The latest VisualStudio version shipped a bug in the MSVC linker that
cannot handle symbols above a certain size. Switching to the Rust linker
fixes this issue.

Related: https://github.com/rust-lang/rust/issues/141626
This commit is contained in:
Thomas Eizinger
2025-06-23 17:55:36 +02:00
committed by GitHub
parent e36efa5d62
commit 7a344836a2

View File

@@ -3,3 +3,8 @@ rustflags="-C force-frame-pointers=yes"
[target.x86_64-unknown-linux-gnu]
rustflags="-C force-frame-pointers=yes"
# https://github.com/rust-lang/rust/issues/141626
# (can be removed once link.exe is fixed)
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"