roc/ci/enable-lld.sh
2022-08-12 11:45:02 +02:00

7 lines
207 B
Bash
Executable File

#!/usr/bin/env bash
mkdir -p $HOME/.cargo
echo -e "[build]\nrustflags = [\"-C\", \"link-arg=-fuse-ld=lld\", \"-C\", \"target-cpu=native\"]" > $HOME/.cargo/config
ln -s /usr/bin/lld-8 /usr/local/bin/ld.lld