Skip to content

Commit

Permalink
Update enzyme-ci.yml (#84)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
6 people authored Apr 19, 2024
1 parent b445b6c commit 4cae481
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/enzyme-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,20 @@ jobs:
key: ${{ matrix.os }}-enzyme-${{ steps.enzyme-commit.outputs.HEAD }}
- name: Build
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-17 main" || true
sudo apt-get -y update
sudo apt-get install -y lld-17
mkdir lld-path-manipulation
ln -s "$(which lld-17)" lld-path-manipulation/lld
ln -s "$(which lld-17)" lld-path-manipulation/ld
ln -s "$(which lld-17)" lld-path-manipulation/ld.lld
ln -s "$(which lld-17)" lld-path-manipulation/lld-17
export PATH="$PWD/lld-path-manipulation:$PATH"
mkdir -p build
cd build
rm -f config.toml
../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
../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
../x.py build --stage 1 library/std library/proc_macro library/test tools/rustdoc
rustup toolchain link enzyme build/host/stage1
- name: checkout Enzyme/rustbook
Expand Down

0 comments on commit 4cae481

Please sign in to comment.