diff --git a/.github/workflows/enzyme-ci.yml b/.github/workflows/enzyme-ci.yml index c233b049e1d6d..3d0e7980fda66 100644 --- a/.github/workflows/enzyme-ci.yml +++ b/.github/workflows/enzyme-ci.yml @@ -46,10 +46,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