summaryrefslogtreecommitdiff
path: root/emcc_to_polyfill.sh
diff options
context:
space:
mode:
Diffstat (limited to 'emcc_to_polyfill.sh')
-rwxr-xr-xemcc_to_polyfill.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/emcc_to_polyfill.sh b/emcc_to_polyfill.sh
new file mode 100755
index 000000000..c808e7ae8
--- /dev/null
+++ b/emcc_to_polyfill.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+emcc $1 -o a.html --separate-asm
+# we now have a.asm.js and a.js, combine them
+# a.normal.js: just normal combination of the files. no wasm yet
+cat src/templates/normal.js > a.normal.js
+cat a.asm.js >> a.normal.js
+cat a.js >> a.normal.js
+