Skip to content

Commit 13368b9

Browse files
fix CI: install LLVM 22 (matching llvmlite's bundled version), not 19
Verified on CI: LLVM 19's llc still rejects 'captures(none)' as a parse error ('expected ) at end of argument list'). llvmlite 0.49 bundles LLVM 22.1.0 internally; match that generation instead.
1 parent 5f8688d commit 13368b9

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ jobs:
2828
2929
# Ubuntu's default `llvm`/`clang` packages (LLVM 18 on noble) are
3030
# too old to assemble the IR llvmlite>=0.49 emits: llvmlite's
31-
# ArgumentAttributes only knows the LLVM 19+ 'captures(none)'
32-
# spelling (LLVM renamed 'nocapture' to it), and an older llc
33-
# can't parse that attribute in the .ll text. Install a
34-
# known-recent LLVM from apt.llvm.org instead of the distro
35-
# default, and make its tools the ones found on PATH.
31+
# ArgumentAttributes only knows the 'captures(none)' spelling of
32+
# the renamed 'nocapture' attribute, matching the LLVM 22.1.0 it
33+
# bundles internally - and an llc from an older LLVM (verified:
34+
# 19 still rejects it as a parse error) can't read that attribute
35+
# in the .ll text. Install a matching-generation LLVM from
36+
# apt.llvm.org instead of the distro default, and make its tools
37+
# the ones found on PATH.
3638
wget https://apt.llvm.org/llvm.sh
3739
chmod +x llvm.sh
38-
sudo ./llvm.sh 19 all
39-
sudo ln -sf /usr/bin/clang-19 /usr/local/bin/clang
40-
sudo ln -sf /usr/bin/llc-19 /usr/local/bin/llc
40+
sudo ./llvm.sh 22 all
41+
sudo ln -sf /usr/bin/clang-22 /usr/local/bin/clang
42+
sudo ln -sf /usr/bin/llc-22 /usr/local/bin/llc
4143
clang --version
4244
llc --version
4345

0 commit comments

Comments
 (0)