Skip to content

Commit 3c31709

Browse files
authored
[CI] Fix llvm-lit path for LLVM 23 apt packages (#3620)
The `llvm-X-tools` apt package previously shipped `lit` as a Python script at `build/utils/lit/lit.py`. This path was removed in the Debian/Ubuntu packaging of LLVM 23: ["Install a lit binary"](https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/bedcb23bc00c9fe407725803d73e50ec6c8ecaf9) The packaging now installs a compiled `lit` binary at `bin/lit` instead, with a `/usr/bin/lit-X` symlink. Updated LLVM_EXTERNAL_LIT` to match the new location.
1 parent 0337510 commit 3c31709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check-out-of-tree-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
9999
-DCMAKE_CXX_FLAGS="-Werror" \
100100
-DLLVM_INCLUDE_TESTS=ON \
101-
-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-${{ env.LLVM_VERSION }}/build/utils/lit/lit.py" \
101+
-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-${{ env.LLVM_VERSION }}/bin/lit" \
102102
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${{ github.workspace }}/SPIRV-Headers \
103103
-G "Unix Makefiles"
104104
- name: Build
@@ -109,3 +109,4 @@ jobs:
109109
run: |
110110
cd build
111111
make check-llvm-spirv -j$(nproc)
112+

0 commit comments

Comments
 (0)