From 5d40bddf6cb97b0ea9f6dbb5cc8b4c298a86b291 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Sun, 31 May 2020 23:18:24 -0700 Subject: [PATCH] add windows lld config --- .cargo/config_fast_builds | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index 2c06ff3d43665..6f1151e5bc6ef 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -1,3 +1,9 @@ [target.x86_64-unknown-linux-gnu] linker = "/usr/bin/clang" -rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] \ No newline at end of file +rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] + +# NOTE: you must manually install lld on windows. you can easily do this with the "scoop" package manager: +# `scoop install llvm` +[target.x86_64-pc-windows-msvc] +linker = "lld-link.exe" +rustflags = ["-Clinker=lld", "-Zshare-generics=y"] \ No newline at end of file