Commit 9ff2a11
authored
Bump macOS to version 26 (#373)
- Linked Case: NOJIRAID
### Description
Was trying to build sketcher on macos (M4). Hit this error:
```
In file included from /Users/runner/work/sketcher/sketcher/build/external/qt-prefix/src/qt-build/qtbase/include/QtCore/qyieldcpu.h:1:
/Users/runner/work/sketcher/sketcher/build/external/qt-prefix/src/qt/qtbase/src/corelib/thread/qyieldcpu.h:35:5: error: implicitly declaring library function '__yield' with type 'void ()' [-Werror,-Wimplicit-function-declaration]
35 | __yield(); // Generic
| ^
/Users/runner/work/sketcher/sketcher/build/external/qt-prefix/src/qt/qtbase/src/corelib/thread/qyieldcpu.h:35:5: note: include the header <arm_acle.h> or explicitly provide a declaration for '__yield'
1 error generated.
ninja: build stopped: subcommand failed.
```
also reproducible when I bumped to `macos-26` on CI--did this since the
XCode version reflects what we use for 26.3. Let me know if you dont
want to include the bump to 26 here and just have the patch only.
Claude's explanation:
====
Apple clang 21+ has `__has_builtin(__yield)` as `true`, so Qt 6.x's
qyieldcpu.h takes its generic `__yield()` branch — but `__yield()` is
only declared in <arm_acle.h>, which that header never includes. Qt
compiles with -Werror=implicit-function-declaration, so the implicit
declaration becomes a hard error.
=====
Not sure if this may be addressed/solved with a more recent Qt?
### Testing Done
Tests on macos-26 pass.1 parent f0fd288 commit 9ff2a11
3 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | | - | |
| 278 | + | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments