From 87de47fe5eaf237c35a64c425fbe676de54a96f2 Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Mon, 21 Jul 2025 15:35:05 -0700 Subject: [PATCH] Use rust-lld linker on MSVC Windows (#4042) The latest version of MSVC fails when linking labrinth, making now a perfect opportunity to switch over to the rust-lld linker instead. --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 7115f001..085f3158 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,5 +2,8 @@ [target.'cfg(windows)'] rustflags = ["-C", "link-args=/STACK:16777220", "--cfg", "tokio_unstable"] +[target.x86_64-pc-windows-msvc] +linker = "rust-lld" + [build] rustflags = ["--cfg", "tokio_unstable"]