roc/ci/enable-lld.sh

10 lines
298 B
Bash
Raw Normal View History

2022-08-12 12:45:02 +03:00
#!/usr/bin/env bash
2020-03-27 09:00:31 +03:00
2022-10-17 18:40:35 +03:00
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
2020-03-27 09:00:31 +03:00
mkdir -p $HOME/.cargo
2020-04-02 04:16:14 +03:00
echo -e "[build]\nrustflags = [\"-C\", \"link-arg=-fuse-ld=lld\", \"-C\", \"target-cpu=native\"]" > $HOME/.cargo/config
2020-03-27 09:00:31 +03:00
ln -s /usr/bin/lld-8 /usr/local/bin/ld.lld