From 732a4ae77740369550ed74af80f0004ad94cf9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garci=CC=81a?= Date: Tue, 30 Jul 2024 16:14:51 +0200 Subject: [PATCH] Use LLD on Windows --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index d7945d088..4d90762d4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,8 @@ [target.'cfg(target_arch="aarch64")'] rustflags = ["--cfg", "aes_armv8"] + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=-fuse-ld=lld"] + +[target.x86_64-pc-windows-gnu] +rustflags = ["-C", "link-arg=-fuse-ld=lld"]