Repository navigation
Commit 9dd64f2
build(android): opt into ABIs with -PrustynesAbis; an armeabi-v7a build for D5
Copilot on #571: run-sheet row D5 (RetroAchievements on 32-bit Android,
the platform whose struct layout the time_t fix in 5aaeb64 changed) could
not be run with the documented APK. That APK carries only arm64-v8a and
x86_64, so a 32-bit-only device cannot install it, and a 64-bit device runs
the 64-bit library and never exercises a 32-bit time_t. The build comment
called armeabi-v7a "opt-in" but gave no way to opt in short of editing
builtAbis.
`builtAbis` now reads an optional Gradle property: `-PrustynesAbis=a,b`
replaces the default list. Unset or empty, it is `arm64-v8a, x86_64` as
before, so no existing build changes. The release variant's `shipAbi` is
separate and untouched.
Built with it: `./gradlew :app:assembleFossDebug -PrustynesAbis=armeabi-v7a`
gives an APK whose only native directory is lib/armeabi-v7a/
(librustynes_mobile.so: ELF 32-bit LSB, ARM, EABI5, for Android), SHA-256
4e75ff99...cfd3b21, 39,375,703 bytes. The run sheet records it and makes
D5's step install that APK and confirm `primaryCpuAbi` is armeabi-v7a
before recording a result. It also notes that many recent 64-bit phones no
longer run 32-bit apps, in which case D5 is NOT RUN.
Not verified: that APK has not run anywhere. The x86_64 emulator cannot run
ARM code, so D5 still needs a device.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014qfTKi2M3swo7qnwvYCkDj1 parent 4499901 commit 9dd64f2
2 files changed
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
75 | 92 | | |
76 | 93 | | |
77 | 94 | | |
78 | | - | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | 98 | | |
| |||
118 | 135 | | |
119 | 136 | | |
120 | 137 | | |
121 | | - | |
| 138 | + | |
122 | 139 | | |
123 | 140 | | |
124 | 141 | | |
| |||
0 commit comments