In an attempt to speed up linking I am trying to use the lld linker.
I have edited my
.cargo/conf file to contain the following:
[target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-args=-rdynamic", "-C", "link-arg=-fuse-ld=lld"]
I have llvm installed, although possibly relevant on Ubuntu it has installed lld as
lld-10. I have symlinked
/usr/bin/lld -> usr/bin/lld-10 just to make sure.
ld exists in
However when I try to
cargo build I get the error:
= note: collect2: fatal error: cannot find ‘ld’ compilation terminated.
Any ideas why?