0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/scripts/ios
Wing eb7d96ca96 Published mobile cores run Luau without its asserts, and each build checks it
The mobile core links Luau (zeron-visual's, through mlua and luau0-src),
and nothing set LUAU_CXXFLAGS for it: TestFlight's and the App Store's
cores and Android's published ones kept Luau's asserts, about a fifth of
script time. Now a mobile-dist build (scripts/ios/build-core.sh for a
Release configuration; scripts/android/build-core.sh with
ZERON_ANDROID_PROFILE=mobile-dist, android.yml off pull requests) builds
the library with LUAU_CXXFLAGS=-DNDEBUG. A development core (mobile)
keeps them, and so does iOS's host uniffi-bindgen: the flag is on the
library's build alone (through build-core.sh's env -i), so switching
configurations doesn't rebuild Luau for the host.

Each refuses a published library with the asserts, by what LUAU_ASSERT
keeps when they're on (Luau/Common.h: __FILE__): each Luau source file's
path, VM/src/l*.cpp, as the release engine's packages check.
build-core.sh's library build for a Release archive (mobile-dist,
aarch64-apple-ios, its env -i), here: 45 such paths in
libzeron_mobile.a without the flag, none with it (no luau0-src path at
all); the check fails the first and passes the second. Android's .so
(cargo ndk) has no NDK here to build with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
History 2026-11-11 11:39:52 -07:00
..
build-core.sh Published mobile cores run Luau without its asserts, and each build checks it 2026-11-11 11:39:52 -07:00
gen-icons.py iOS: rewrite on a Rust core (analytic layout, incremental markdown, UIKit + Liquid Glass) (#570) 2026-09-26 22:57:46 -07:00