From 9ee3fe80e75b96f287edf5af599ef8054cb5acfd Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 19 Sep 2024 13:36:12 -0500 Subject: [PATCH] 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"