pcbjam/scripts/common
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 014816b7a5 fix(wasm): Fix Emscripten empty callback functions for pthreads builds
Emscripten with pthreads generates empty arrow functions `{}` for callback
paths it assumes won't be used. However, when registering HTML5 events from
the main browser thread, targetThread is 0 and the direct call path IS taken.

This fix post-processes the generated JS to replace empty callbacks with
actual dynCall invocations for:
- HTML5 event callbacks (dynCall_iiii) - 7 instances
- pthread entry points (dynCall_ii) - 1 instance
- Signal handlers (dynCall_vi) - 1 instance
- Async timers (dynCall_vi) - 1 instance

Also improves build logging to show completion status and exit code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:19:13 +01:00
..
apply-asyncify.sh Fix KiCad WASM build and runtime errors 2025-12-22 16:30:53 +01:00
apply-finalize.sh Fix clean build issues 2025-12-27 15:28:20 +01:00
env.sh feat(webgl): Add WebGL GAL test infrastructure (Phase 1) 2026-01-07 16:11:31 +01:00
functions.sh Add ccache and incremental build system for faster development 2025-12-26 20:51:58 +01:00
get-wasm-opt.sh Move tools/ to build-wasm/tools/ 2025-12-27 14:08:47 +01:00
inject-dyncall-shims.sh fix(wasm): Fix Emscripten empty callback functions for pthreads builds 2026-01-12 14:19:13 +01:00
logging.sh fix(wasm): Fix Emscripten empty callback functions for pthreads builds 2026-01-12 14:19:13 +01:00
versions.sh Add KiCad WASM build infrastructure and dependency scripts 2025-12-04 13:15:04 +01:00