Commit 419cdb0
committed
build: modernize makem.js for Windows and current emscripten
- Rewrite tools/makem.js: switch from exec(string) to execFile(array),
expand globs in Node, locate emcc.py and invoke via python (sidesteps
Node's CVE-2024-27980 .bat block and cmd.exe's 8k command-line limit)
- Auto-detect emsdk via EMSDK env var when EMSCRIPTEN is unset
- Use .o instead of deprecated .bc for libar intermediate output
- Drop obsolete --memory-init-file 0 flag (asm.js leftover)
- Drop --js-library jslibrary.js (file removed in #18)
- Replace USE_ES6_IMPORT_META=0 with ENVIRONMENT=web (browser-only)
- Make package.json scripts cross-platform (drop ; chain and `date`)
- emcc emsdk 3.1.60
Refs #27
Refs #311 parent 9a812a4 commit 419cdb0
10 files changed
Lines changed: 53344 additions & 57181 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
0 commit comments