Skip to content

Commit 9edc110

Browse files
committed
visionOS: try to pin clang
1 parent 2ace648 commit 9edc110

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

build/patches/pin_clang21.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/toolchain/toolchain.gni b/toolchain/toolchain.gni
2+
index b92df04ac..1a2b3c4d5 100644
3+
--- a/toolchain/toolchain.gni
4+
+++ b/toolchain/toolchain.gni
5+
@@ -43,7 +43,7 @@ declare_args() {
6+
}
7+
8+
declare_args() {
9+
- clang_version = "22"
10+
+ clang_version = "21"
11+
}
12+
13+
# Extension for shared library files (including leading dot).

build/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,16 @@ def get_depot_tools(source_dir, fetch=False):
174174
'macos_h264_encoder.patch': (2, []),
175175
'macos_screen_capture.patch': (2, []),
176176
'macos_use_xcode_clang.patch': (1, ['build']),
177+
'pin_clang21.patch': (1, ['build']),
177178
}
178179

179180
PATCHES = {
180-
'apple': [],
181+
'apple': [
182+
'pin_clang21.patch',
183+
],
181184
'apple_prefixed': [
182185
'apple_prefix.patch',
186+
'pin_clang21.patch',
183187
],
184188
'windows_x86_64': [
185189
'add_license_dav1d.patch',

0 commit comments

Comments
 (0)