Zig's target encodes the API level (e.g. -Dtarget=aarch64-linux-android.26), which affects compilation as emutls is used for API levels below 29.
android.resolveTargets seems to always return API level 29, regardless of what is specified in the Zig target (or to sdk.createApk), which breaks threadlocal variables for lower API levels.
Zig's target encodes the API level (e.g.
-Dtarget=aarch64-linux-android.26), which affects compilation as emutls is used for API levels below 29.android.resolveTargetsseems to always return API level 29, regardless of what is specified in the Zig target (or tosdk.createApk), which breaks threadlocal variables for lower API levels.