summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemcc_to_polyfill.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/emcc_to_polyfill.sh b/emcc_to_polyfill.sh
index c808e7ae8..1daaabb5b 100755
--- a/emcc_to_polyfill.sh
+++ b/emcc_to_polyfill.sh
@@ -1,8 +1,18 @@
#!/bin/sh
+
+echo "calling emcc"
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
+
+# we now have a.asm.js and a.js
+
+echo 'constructing 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
+echo 'constructing a.wasm.js' # use wasm polyfill in place of asm.js THIS IS NOT A DRILL
+cp a.asm.js a.asm.code.js
+cat src/templates/wasm.js > a.wasm.js
+cat bin/wasm.js >> a.wasm.js
+cat a.js >> a.wasm.js
+