File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,20 @@ jobs:
47
47
key : ${{ matrix.os }}-enzyme-${{ steps.enzyme-commit.outputs.HEAD }}
48
48
- name : Build
49
49
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"
50
60
mkdir -p build
51
61
cd build
52
62
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
54
64
../x.py build --stage 1 library/std library/proc_macro library/test tools/rustdoc
55
65
rustup toolchain link enzyme build/host/stage1
56
66
- name : checkout Enzyme/rustbook
You can’t perform that action at this time.
0 commit comments