Several patches in .github/workflows/node-android.yml step "3b" work around Android-specific issues in Node.js/V8 that should eventually be upstreamed:
- stack_trace_posix.cc — backtrace() stubs for Android API < 33 (PR to gate on
__ANDROID_API__ instead?)
- trap-handler.h — Android cross-build shouldn't define V8_TRAP_HANDLER_SUPPORTED=true for simulator builds (v26.x already has an
#error guard for Android but the chain still fires for the simulator case)
- zlib/cpu_features.c — NDK cpufeatures library not available in gyp build; use
getauxval(AT_HWCAP) like the Linux path already does
- uv/uv.gyp — bare
include_dirs vs include_dirs+ causes NDK include path loss
- uv_fs_copyfile — FICLONE ioctl not supported on Android filesystems
Each patch is documented inline with the relevant Node.js issue numbers.
Several patches in
.github/workflows/node-android.ymlstep "3b" work around Android-specific issues in Node.js/V8 that should eventually be upstreamed:__ANDROID_API__instead?)#errorguard for Android but the chain still fires for the simulator case)getauxval(AT_HWCAP)like the Linux path already doesinclude_dirsvsinclude_dirs+causes NDK include path lossEach patch is documented inline with the relevant Node.js issue numbers.