Skip to content

Commit 4cae481

Browse files
ZuseZ4I-Al-Istannenjedbrowntgymnichwsmoses
authored
Update enzyme-ci.yml (#84)
* Update enzyme-ci.yml We don't need to build LLD (takes 2.5 min), we just want to use some LLD for linking. We also don't need llvm plugins. * Update enzyme-ci.yml * Update .github/workflows/enzyme-ci.yml Co-authored-by: Jed Brown <[email protected]> * Update enzyme-ci.yml * Update enzyme-ci.yml or will it be --enable-use-lld? stay tuned. * Update enzyme-ci.yml * Update enzyme-ci.yml authored-by: @jedbrown * Update enzyme-ci.yml * Update enzyme-ci.yml * Update .github/workflows/enzyme-ci.yml Co-authored-by: Tim Gymnich <[email protected]> * Update enzyme-ci.yml * Use vendored llvm * Update enzyme-ci.yml * Update enzyme-ci.yml * Update enzyme-ci.yml * Update enzyme-ci.yml * Revert "Update enzyme-ci.yml" This reverts commit 9ec1139. * Revert "Update enzyme-ci.yml" This reverts commit 84fe269. * Fxing lld rebuild Co-authored-by: I-Al-Istannen <[email protected]> --------- Co-authored-by: I-Al-Istannen <[email protected]> Co-authored-by: Jed Brown <[email protected]> Co-authored-by: Tim Gymnich <[email protected]> Co-authored-by: William Moses <[email protected]> Co-authored-by: Tim Gymnich <[email protected]>
1 parent b445b6c commit 4cae481

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/enzyme-ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,20 @@ jobs:
4747
key: ${{ matrix.os }}-enzyme-${{ steps.enzyme-commit.outputs.HEAD }}
4848
- name: Build
4949
run: |
50+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
51+
sudo apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-17 main" || true
52+
sudo apt-get -y update
53+
sudo apt-get install -y lld-17
54+
mkdir lld-path-manipulation
55+
ln -s "$(which lld-17)" lld-path-manipulation/lld
56+
ln -s "$(which lld-17)" lld-path-manipulation/ld
57+
ln -s "$(which lld-17)" lld-path-manipulation/ld.lld
58+
ln -s "$(which lld-17)" lld-path-manipulation/lld-17
59+
export PATH="$PWD/lld-path-manipulation:$PATH"
5060
mkdir -p build
5161
cd build
5262
rm -f config.toml
53-
../configure --enable-llvm-link-shared --enable-llvm-plugins --enable-llvm-enzyme --release-channel=nightly --enable-llvm-assertions --enable-lld --enable-option-checking --enable-ninja --disable-docs
63+
../configure --enable-llvm-link-shared --enable-llvm-enzyme --set=rust.use-lld=true --release-channel=nightly --enable-llvm-assertions --enable-option-checking --enable-ninja --disable-docs
5464
../x.py build --stage 1 library/std library/proc_macro library/test tools/rustdoc
5565
rustup toolchain link enzyme build/host/stage1
5666
- name: checkout Enzyme/rustbook

0 commit comments

Comments
 (0)