Skip to content

Commit 419cdb0

Browse files
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 #31
1 parent 9a812a4 commit 419cdb0

10 files changed

Lines changed: 53344 additions & 57181 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
build/libar.bc
3+
build/libar.o
34
doc/*

0 commit comments

Comments
 (0)