Skip to content

Commit d0969cd

Browse files
authored
Update LLVM toolchains to 21.0.4 (#835)
Let's stay modern.
1 parent c7bf8b1 commit d0969cd

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

cpython-unix/patch-jit-llvm-version-3.13.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py
66
import typing
77

88
-_LLVM_VERSION = 18
9-
+_LLVM_VERSION = 20
9+
+_LLVM_VERSION = 21
1010
_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
1111

1212
_P = typing.ParamSpec("_P")

cpython-unix/patch-jit-llvm-version-3.14.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py
66
import typing
77

88
-_LLVM_VERSION = 19
9-
+_LLVM_VERSION = 20
9+
+_LLVM_VERSION = 21
1010
_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
1111

1212
_P = typing.ParamSpec("_P")

cpython-unix/patch-jit-llvm-version-3.15.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py
66

77

88
-_LLVM_VERSION = "19"
9-
+_LLVM_VERSION = "20"
9+
+_LLVM_VERSION = "21"
1010
_EXTERNALS_LLVM_TAG = "llvm-19.1.7.0"
1111

1212

pythonbuild/downloads.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -192,32 +192,32 @@
192192
"version": "14.0.3+20220508",
193193
},
194194
# Remember to update LLVM_URL in src/release.rs whenever upgrading.
195-
"llvm-20-aarch64-linux": {
196-
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-gnu_only-aarch64-unknown-linux-gnu.tar.zst",
197-
"size": 255946687,
198-
"sha256": "e70753f294b8f83fffbaf07af36857c27ceaef0291cb10f724ada6af11b0a5bc",
199-
"version": "20.1.4+20250511",
195+
"llvm-21-aarch64-linux": {
196+
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-gnu_only-aarch64-unknown-linux-gnu.tar.zst",
197+
"size": 230693810,
198+
"sha256": "2933d04136d102d7b82e6a712c5a2d45430045a17689033713e7daab931f111f",
199+
"version": "21.1.4+20251029",
200200
},
201201
# Remember to update LLVM_URL in src/release.rs whenever upgrading.
202-
"llvm-20-x86_64-linux": {
203-
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-gnu_only-x86_64-unknown-linux-gnu.tar.zst",
204-
"size": 299883811,
205-
"sha256": "32374eb8b32fc79e9022f21eefc848d75fa3c46e68054a5dfc1f68d6f2f20429",
206-
"version": "20.1.4+20250511",
202+
"llvm-21-x86_64-linux": {
203+
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-gnu_only-x86_64-unknown-linux-gnu.tar.zst",
204+
"size": 273582186,
205+
"sha256": "4d33971109cab386c1721f7af80b8559f7e678164a0fed443909a84347c666f4",
206+
"version": "21.1.4+20251029",
207207
},
208208
# Remember to update LLVM_URL in src/release.rs whenever upgrading.
209209
"llvm-aarch64-macos": {
210-
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-aarch64-apple-darwin.tar.zst",
211-
"size": 152858186,
212-
"sha256": "d44bf8256b2468339c3b4491edb9c799ab89e466d98d098391286dc86e86a63b",
213-
"version": "20.1.4+20250511",
210+
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-aarch64-apple-darwin.tar.zst",
211+
"size": 155537884,
212+
"sha256": "4a17d032ea9c2bd86203f5195df57fe621b0cc5163b858bb4208584fa41e8fc4",
213+
"version": "21.1.4+20251029",
214214
},
215215
# Remember to update LLVM_URL in src/release.rs whenever upgrading.
216216
"llvm-x86_64-macos": {
217-
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-x86_64-apple-darwin.tar.zst",
218-
"size": 160140682,
219-
"sha256": "31b35734b678ad22471e31cf6a173c54819a3bca9ffefd4a70d8cdb935d67501",
220-
"version": "20.1.4+20250511",
217+
"url": "https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-x86_64-apple-darwin.tar.zst",
218+
"size": 163122945,
219+
"sha256": "a245a0a8bf529d8dc57ea48b930313b1325f5540bf42ddb8704ce525926cde46",
220+
"version": "21.1.4+20251029",
221221
},
222222
"m4": {
223223
# Mirrored from https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz

pythonbuild/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ def clang_toolchain(host_platform: str, target_triple: str) -> str:
481481
if "musl" in target_triple:
482482
return "llvm-14-x86_64-linux"
483483
else:
484-
return "llvm-20-x86_64-linux"
484+
return "llvm-21-x86_64-linux"
485485
elif host_platform == "linux_aarch64":
486-
return "llvm-20-aarch64-linux"
486+
return "llvm-21-aarch64-linux"
487487
elif host_platform == "macos_arm64":
488488
return "llvm-aarch64-macos"
489489
elif host_platform == "macos_x86_64":

src/release.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,14 @@ pub fn produce_install_only_stripped(tar_gz_path: &Path, llvm_dir: &Path) -> Res
610610
static LLVM_URL: Lazy<Url> = Lazy::new(|| {
611611
if cfg!(target_os = "macos") {
612612
if std::env::consts::ARCH == "aarch64" {
613-
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-aarch64-apple-darwin.tar.zst").unwrap()
613+
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-aarch64-apple-darwin.tar.zst").unwrap()
614614
} else if std::env::consts::ARCH == "x86_64" {
615-
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-x86_64-apple-darwin.tar.zst").unwrap()
615+
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-21.1.4+20251029-x86_64-apple-darwin.tar.zst").unwrap()
616616
} else {
617617
panic!("unsupported macOS architecture");
618618
}
619619
} else if cfg!(target_os = "linux") {
620-
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20250511/llvm-20.1.4+20250511-gnu_only-x86_64-unknown-linux-gnu.tar.zst").unwrap()
620+
Url::parse("https://github.com/indygreg/toolchain-tools/releases/download/toolchain-bootstrap%2F20251029/llvm-20.1.4+20251029-gnu_only-x86_64-unknown-linux-gnu.tar.zst").unwrap()
621621
} else {
622622
panic!("unsupported platform");
623623
}

0 commit comments

Comments
 (0)