Build Android runtimes with the host zi2c

build_android_runtime.py ran Ziran's make with the NDK compiler and no
GEN_ZI2C, so the generated-C step would run a zi2c built for the device.
It now passes the pinned toolchain's build/bin/zi2c, which the Android
CMake already requires. The ZX player APK builds for all three ABIs and
runs app.zx natively on the Moto (armeabi-v7a).
This commit is contained in:
waozi committed 2026-11-16 04:10:17 -03:00
1 parent d00b148f21
commit 9c80f79110
2 files changed
+7

No files matched your search

+4
View File
@@ -2,6 +2,10 @@
## Unreleased
- Android builds compile Ziran's runtime for each ABI with the pinned
toolchain's own `zi2c` (`GEN_ZI2C`), so the modules Ziran generates C for
build on the host instead of with a `zi2c` built for the device; the ZX
player APK builds again and runs `app.zx` natively on the ARMv7 Moto.
- Kryon's renderer and SDL3 artifacts no longer list the top-level `Makefile`
as a recipe input. Their providers never read it, and Ziran refuses an
artifact whose inputs change while it builds, so an edit there failed a
+3
View File
@@ -25,6 +25,9 @@ command = [
"CC=" + a.cc,
"AR=" + a.ar,
"OBJCOPY=" + a.objcopy,
# The modules Ziran generates C for compile on this host, with the
# pinned toolchain's own zi2c, not one built for the device.
"GEN_ZI2C=" + str(source / "build/bin/zi2c"),
"CFLAGS=" + a.flags,
"FRAMEFLAGS=-Wframe-larger-than=16384",
str(output / "libziran.a"),