Fix KiCad WASM startup issues

- Increase thread pool size from 4 to 8 with STRICT=0 to prevent
  "thread pool exhausted" errors when KiCad creates worker threads
- Add thisProgram='/usr/bin/pcbnew' to provide absolute path for
  argv[0], fixing "No meaningful argv[0]" DEBUG check in KiCad

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Viktor Vaczi 2025-12-14 16:09:04 +01:00
commit a3445575db
2 changed files with 2 additions and 1 deletions

View file

@ -106,6 +106,7 @@
};
var Module = {
thisProgram: '/usr/bin/pcbnew', // Fake absolute path for argv[0] (KiCad DEBUG check)
preRun: [createCanvas],
postRun: [],