also looking at this
perf(android): ship libcraft.so without its DWARF, and keep the DWARF for symbols
#217
6 files
+235
-14
| @@ -55,7 +55,10 @@ into the APK and once without: | ||
| 55 | 55 | |
| 56 | 56 | The Zig Android library links bionic, so building it needs the NDK — |
| 57 | 57 | `sdkmanager --install "ndk;26.1.10909125"`. Without it `build-android` refuses |
| 58 | rather than producing a library that installs and then fails to load. | |
| 58 | rather than producing a library that installs and then fails to load. The NDK's | |
| 59 | `llvm-objcopy` also strips each release library's DWARF into | |
| 60 | `zig-out/android-symbols/`, and the suite refuses to start on a `libcraft.so` | |
| 61 | that still carries any. | |
| 59 | 62 | |
| 60 | 63 | ```bash |
| 61 | 64 | cd packages/zig && zig build build-android-all -Doptimize=ReleaseSafe -Dandroid-ndk="$ANDROID_NDK_HOME" && cd - |