-Clinker=lld was overwriting linker="lld-link.exe"; having both is unnecessary.

Using the bundled lld (rust-lld) for Windows.
This commit is contained in:
Nicholas Rishel 2020-08-12 16:44:22 -07:00
parent d488d4e308
commit 74db5e2a5b

View file

@ -10,8 +10,6 @@ rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
[target.x86_64-apple-darwin]
rustflags = ["-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"]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=y"]