Skip to content

Commit 6e61295

Browse files
feat: support v21 and drop v8 (#64)
* feat: support v21 and drop v8 * fix: add --ignore-missing-links to ignore failure * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: ignore failure on windows for v21 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9ab671e commit 6e61295

File tree

3 files changed

+8
-69
lines changed

3 files changed

+8
-69
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
clang-version: [ 20, 19, 18, 17, 16, 15, 14, 13, 12.0.1, 12, 11, 10, 9, 8]
23+
clang-version: [ 21, 20, 19, 18, 17, 16, 15, 14, 13, 12.0.1, 12, 11, 10, 9]
2424
os: [ linux, macosx, windows ]
2525
include:
26+
- clang-version: 21
27+
release: llvm-project-21.1.0.src
2628
- clang-version: 20
2729
release: llvm-project-20.1.0.src
2830
- clang-version: 19
@@ -51,9 +53,6 @@ jobs:
5153
- clang-version: 9
5254
release: llvm-project-9.0.1
5355
extra-cmake-args: '-DLLVM_ENABLE_Z3_SOLVER=OFF'
54-
- clang-version: 8
55-
release: llvm-project-8.0.1
56-
extra-cmake-args: '-DCLANG_ANALYZER_ENABLE_Z3_SOLVER=OFF'
5756
- os: linux
5857
runner: ubuntu-22.04
5958
os-cmake-args: '-DLLVM_BUILD_STATIC=ON -DCMAKE_CXX_FLAGS="-s -flto" ${POSIX_CMAKE_ARGS} ${LINUX_CMAKE_ARGS}'
@@ -91,42 +90,17 @@ jobs:
9190
# The commit hash of this repository into the clang binaries
9291
shell: bash
9392
run: curl -L https://github.com/${{ github.repository }}/archive/${{ github.ref }}.tar.gz | tar xvz --strip 1
94-
- name: Get llvm-project
95-
if: ${{ matrix.clang-version == 8 }}
96-
shell: bash
97-
run: |
98-
version=${RELEASE##llvm-project-}
99-
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/llvm-${version}.src.tar.xz
100-
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/cfe-${version}.src.tar.xz
101-
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/clang-tools-extra-${version}.src.tar.xz
10293
- name: Get llvm-project
10394
if: ${{ matrix.clang-version >= 9 || matrix.clang-version == '12.0.1' }}
10495
shell: bash
10596
run: |
10697
version=${RELEASE##llvm-project-}; version=${version%.src}
10798
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${{ matrix.release }}.tar.xz
108-
10999
- name: Unpack llvm-project
110-
if: ${{ matrix.clang-version < 9 }}
111100
shell: bash
112101
run: |
113-
version=${RELEASE##llvm-project-}
114-
tar xf llvm-${version}.src.tar.xz
115-
tar xf cfe-${version}.src.tar.xz ${{ matrix.extra-tar-args-cfe }}
116-
tar xf clang-tools-extra-${version}.src.tar.xz
117-
mkdir ${{ matrix.release }}
118-
mv llvm-${version}.src ${{ matrix.release }}/llvm
119-
mv cfe-${version}.src ${{ matrix.release }}/clang
120-
mv clang-tools-extra-${version}.src ${{ matrix.release }}/clang-tools-extra
121-
- name: Unpack llvm-project
122-
if: ${{ matrix.clang-version >= 9 || matrix.clang-version == '12.0.1' }}
123-
shell: bash
124-
run: |
125-
tar xf ${{ matrix.release }}.tar.xz ${{ matrix.extra-tar-args }}
126-
- name: Patch clang-8 includes
127-
if: ${{ matrix.clang-version == 8 }}
128-
shell: bash
129-
run: patch ${{ matrix.release }}/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h include-cstdint-string-prior-to-using-uint8_t.patch
102+
# ignore failure on v21 on windows
103+
tar xf ${{ matrix.release }}.tar.xz ${{ matrix.extra-tar-args }} || true
130104
- name: Patch trivially-copyable clang 9/10
131105
if: ${{ ( matrix.clang-version == 9 || matrix.clang-version == 10 ) && matrix.os == 'windows' }}
132106
shell: bash

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Includes **[clang-format](https://clang.llvm.org/docs/ClangFormat.html), [clang-
99

1010
## Clang Tools Version Support Matrix
1111

12-
| Clang Tools |OS/Version |20|19|18 |17 |16 |15 |14 |13 |12 |11 |10 |9 |8 |
12+
| Clang Tools |OS/Version |21|20|19 |18 |17 |16 |15 |14 |13 |12 |11 |10 |9 |
1313
|:------------|-----------|--|--|---|---|---|---|---|---|---|---|---|---|---|
1414
|clang-format |Linux 64 |✔️|✔️|✔️ |✔️|✔️|✔️ |✔️|✔️ |✔️ |✔️|✔️| ✔️|✔️|
1515
| |Window 64 |✔️|✔️|✔️ |✔️|✔️|✔️ |✔️|✔️ |✔️ |✔️|✔️| ✔️|✔️|
@@ -27,6 +27,8 @@ Includes **[clang-format](https://clang.llvm.org/docs/ClangFormat.html), [clang-
2727
> [!NOTE]
2828
>
2929
> Remove Support v7 (released in May 2019) by February 2025.
30+
>
31+
> Remove Support v8 (released in July 2019) by September 2025.
3032
3133
## Download
3234

include-cstdint-string-prior-to-using-uint8_t.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)