From 9393639a6e0ac637fb1544622ac33e58f67ebd2d Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 19 Sep 2024 13:30:49 -0500 Subject: [PATCH 1/2] rust-lld --- .cargo/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 4691abf309..0b31687f31 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,7 @@ [build] rustflags = [ "-D", "warnings", + "-C", "linker=rust-lld", # "--cfg", "windows_debugger_visualizer", # "--cfg", "windows_raw_dylib", From 9ee3fe80e75b96f287edf5af599ef8054cb5acfd Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 19 Sep 2024 13:36:12 -0500 Subject: [PATCH 2/2] only for msvc? --- .cargo/config.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 0b31687f31..b77fff5c1e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,10 +1,18 @@ [build] rustflags = [ "-D", "warnings", - "-C", "linker=rust-lld", # "--cfg", "windows_debugger_visualizer", # "--cfg", "windows_raw_dylib", # "--cfg", "windows_slim_errors", # "-C", "target-feature=+crt-static", ] + +[target.x86_64-pc-windows-msvc] +linker = "rust-lld" + +[target.i686-pc-windows-msvc] +linker = "rust-lld" + +[target.aarch64-pc-windows-msvc] +linker = "rust-lld"