roc/ci/enable-lld.sh
2020-04-01 23:24:00 -04:00

7 lines
199 B
Bash
Executable File

#!/bin/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