From 01f5b73e3b6e90f3972a344b68e04f57b00855b5 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 8 Sep 2025 12:43:56 +0200 Subject: [PATCH] cargo: Remove unused -fuse-ld=lld flag from Win config (#37769) It is unused and generates a warning ``` LINK : warning LNK4044: unrecognized option '/fuse-ld=lld'; ignored ``` If in the future we want to give `lld-link.exe` a try, we can set ```toml linker = "lld-link.exe" ``` instead. At the time of writing, my tests have shown that there is no real difference between `lld-link` and `link` in terms of linking speed. Release Notes: - N/A --- .cargo/config.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 8db58d238003c29df6dbc9fa733c6d5521340103..717c5e18c8d294bacf65207bc6b8ecb7dba1b152 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -19,8 +19,6 @@ rustflags = [ "windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes "-C", "target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows - "-C", - "link-arg=-fuse-ld=lld", ] [env]