Commit 64a6965
[tools] Update llvm version from 19.1.4 to 21.1.0 (#8359)
Bumps the custom clang-tidy / clang-format build from LLVM 19.1.4 to
21.1.0, and modernizes the Linux build image so it can still install
pytorch's build requirements.
### LLVM version bump (mirrors #5991, the 17.0.6 -> 19.1.4 change)
- `tools/clang-tidy-checks/setup.sh`: clone `llvmorg-21.1.0`, point
`apply_patches` at `21.x-patches`
- `.github/workflows/clang-tidy-linux.yml`: upload `version: 21.1.0`
- `.github/workflows/clang-tidy-macos.yml`: upload `version: 21.1.0`
(Intel + M1)
As with 19, `apply_patches` stays commented out and no `21.x-patches`
directory is added.
### Base image modernization
The first rebuild failed on the final Docker layer: Ubuntu 20.04 ships
Python 3.8, which can no longer satisfy pytorch's
`requirements-build.txt` (`setuptools>=77` dropped 3.8 support, so pip
caps at 75.3.4). This is drift in pytorch's requirements, not the LLVM
bump — the old image would fail the same way on a rebuild.
Rather than bootstrap a newer Python onto EOL Ubuntu 20.04, move to a
modern base (matching pytorch's move to CUDA 12):
- `Dockerfile.cilint-clang-tidy`: base
`nvidia/cuda:11.8.0-devel-ubuntu20.04` ->
`nvidia/cuda:12.4.1-devel-ubuntu22.04`, which provides Python 3.10
natively
- LLVM apt repo pointed at `jammy` instead of `focal`
Ubuntu 22.04 (glibc 2.35) is forward-compatible with
manylinux_2_24/_2_28/_2_34 wheels, so all `requirements-build.txt` deps
resolve to prebuilt wheels.
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent fd65731 commit 64a6965
5 files changed
Lines changed: 12 additions & 12 deletions
File tree
- .github
- workflows
- tools/clang-tidy-checks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments