Files
wz-phone/desktop/src-tauri/cpp/hello2.c
Siavash Sameni 6dd62c94c9
Some checks failed
Mirror to GitHub / mirror (push) Failing after 38s
Build Release Binaries / build-amd64 (push) Failing after 3m51s
step D+1: add third trivial C static lib (hello2.c)
Step D (hello.c + getauxval_fix.c) launches cleanly. E.minus-1
(hello.c + getauxval_fix.c + cpp_smoke.c) crashes. All three are
plain-C trivial single-function files.

Theory: the regression is triggered by having 3 or more cc::Build
static libs in a Tauri Android cdylib, regardless of what the libs
contain. Test: clone hello.c as hello2.c (same content, different
symbol) and add a third cc::Build step compiling it. If this crashes,
the trigger is just the number of static libs. If it launches, there's
something magical about cpp_smoke.c specifically (unlikely — it was
near-identical content).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 16:51:50 +04:00

9 lines
297 B
C

/* hello2.c — identical content to hello.c, different file name + symbol.
* Purpose: test if adding a THIRD trivial C static lib via cc::Build
* regresses Step D regardless of what's in the file. Never called from Rust. */
#include <stdint.h>
int32_t wzp_hello2_stub(void) {
return 43;
}