Fix Windows native Lua bridge release build
Closure: user confirmed production deployment and accepted closure. Historical validation notes and unchecked platform checklist below are retained; no independently rerun MSVC checks are claimed. Fix the win-x64 native Lua bridge failure in client release run 5340 (client_v0.0.24, revision 564157eb2). Work in /home/mathias/Projects/worktrees/engines-windows-lua on fix/windows-lua-bridge-build; preserve unrelated original-checkout changes. Diagnosed from the actual Windows runner log, read-only over the configured server connection: MSVC 19.44 fails at prk_lua.c:29 because its C headers lack max_align_t, with cascading allocation-header errors; it also reports C4324 for jmp_buf alignment padding in prk_lua_vm under /W4 /WX. Fixed only NativeLua/prk_lua.c: use pinned Lua's LUAI_MAXALIGN fields for the allocator union, replace embedded jmp_buf with a pointer to a run_request-local buffer, and clear that pointer/active state through finish_request after execution and diagnostics. No warning suppression or safeguards removed. ./run-client-lua-tests.sh passes 8/8 Release, 8/8 ASan/UBSan, generator self-tests and both Linux x64 NativeAOT executables. git diff --check passes. Validation log: /tmp/prk-windows-lua-validation.log. Actual Windows/MSVC rebuild remains outstanding; no Windows success claimed. Windows build/test verification must remain explicit if unavailable locally. User authorized commit/push and PR creation via /open-pr and will perform Windows validation. Committed as 1e529b221, pushed fix/windows-lua-bridge-build, and opened PR #2811 against develop: https://git.project-rk.com/prk/engines/pulls/2811. Worktree clean; no unrelated changes included. Windows validation remains outstanding; opening the PR does not complete acceptance.
Checklist
1 of 2 complete- Fix the diagnosed MSVC alignment issues and pass native Release and sanitizer regression tests; record Windows validation limits.
- Verify the native bridge Release build and CTest suite with actual Windows MSVC; remaining platform gate.
- Area
- Project Rubi-Ka
- Project
- engines
- Kind
- Bug
- Priority
- High
- Task ID
tsk_6x5j9dfw4w- Updated