Enable LLD on CI

This commit is contained in:
Richard Feldman 2020-03-27 02:00:31 -04:00
parent 8a0411e1f2
commit 9067ca5a57
2 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,9 @@ jobs:
- name: Install LLVM
run: sudo ./ci/install-llvm.sh 8
- name: Enable LLD
run: sudo ./ci/enable-lld.sh
- uses: actions-rs/toolchain@v1
name: Install Rust Toolchain
with:

6
ci/enable-lld.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p $HOME/.cargo
echo -e "[build]\nrustflags = [\"-C\", \"link-arg=-fuse-ld=lld\"]" > $HOME/.cargo/config
ln -s /usr/bin/lld-8 /usr/local/bin/ld.lld