Commit 08e4e65
authored
Fix build with latest Swift toolchain snapshot (#157)
- Update .swift-version to main-snapshot-2026-01-09
- Add C standard library shim headers to CPlaydate to avoid ARM newlib
module conflicts with _DarwinFoundation on macOS 16+
- Remove ARM toolchain/sysroot include paths from Package.swift since
shims now provide the required declarations
- Add newlib syscall stubs and posix_memalign to setup.c for the new
toolchain's linker requirements
- Move posix_memalign from Swift to C for proper linking
- Add TARGET_PLAYDATE=1 to toolset_device.json for conditional compilation
- Fix Xkpd CLodePNG/CQRCode build with minimal shim headers
- Fix qrcode_getModule Bool return type usage in Comic.swift1 parent 944734c commit 08e4e65
File tree
15 files changed
+123
-71
lines changed- .github/workflows
- Examples
- FlappySwift
- Pong
- Xkpd
- Sources/CLodePNG
- include
- Plugins/PDCPlugin
- Sources
- CPlaydate
- include
- PlaydateKit
- Toolsets
15 files changed
+123
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
| 83 | + | |
81 | 84 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 16 | | |
28 | 17 | | |
29 | 18 | | |
| |||
66 | 55 | | |
67 | 56 | | |
68 | 57 | | |
69 | | - | |
70 | 58 | | |
71 | 59 | | |
72 | 60 | | |
| |||
78 | 66 | | |
79 | 67 | | |
80 | 68 | | |
81 | | - | |
82 | 69 | | |
83 | 70 | | |
84 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 5 | | |
26 | 6 | | |
27 | 7 | | |
| |||
50 | 30 | | |
51 | 31 | | |
52 | 32 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 33 | | |
57 | 34 | | |
58 | 35 | | |
| |||
70 | 47 | | |
71 | 48 | | |
72 | 49 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 50 | | |
77 | 51 | | |
78 | 52 | | |
| |||
82 | 56 | | |
83 | 57 | | |
84 | 58 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 59 | | |
89 | 60 | | |
90 | 61 | | |
| |||
0 commit comments