Skip to content

Commit

Permalink
Update LLVM version from 20 to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvh committed Jan 29, 2025
1 parent 7c0db92 commit 8769755
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
# We need compile command database in order to perform clang-tidy check. So,
# in order to perform configure step we need to setup llvm-dev package. This
# env variable used to specify desired version of it
LLVM_VERSION: 20
LLVM_VERSION: 21

jobs:
clang-format-and-tidy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-in-tree-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
- cron: 0 0 * * *

env:
LLVM_VERSION: 20
LLVM_VERSION: 21

jobs:
build_and_test_linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-out-of-tree-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
- cron: 0 0 * * *

env:
LLVM_VERSION: 20
LLVM_VERSION: 21

jobs:
build_and_test:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.13.4)

if(NOT DEFINED BASE_LLVM_VERSION)
set (BASE_LLVM_VERSION 20.0.0)
set (BASE_LLVM_VERSION 21.0.0)
endif(NOT DEFINED BASE_LLVM_VERSION)
set(LLVM_SPIRV_VERSION ${BASE_LLVM_VERSION}.0)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The translator can be built with the latest(nightly) package of LLVM. For Ubuntu
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main"
sudo apt-get update
sudo apt-get install llvm-20-dev llvm-20-tools clang-20 libclang-20-dev
sudo apt-get install llvm-21-dev llvm-21-tools clang-21 libclang-21-dev
```
The installed version of LLVM will be used by default for out-of-tree build of the translator.
```
Expand Down Expand Up @@ -157,7 +157,7 @@ make test
```
This requires that the `-DLLVM_SPIRV_INCLUDE_TESTS=ON` argument is
passed to CMake during the build step. Additionally,
`-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-20/build/utils/lit/lit.py"` is
`-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-21/build/utils/lit/lit.py"` is
needed when building with a pre-installed version of LLVM.

The translator test suite can be disabled by passing
Expand Down

0 comments on commit 8769755

Please sign in to comment.