Skip to content

Commit

Permalink
Revert to wrapping emscripten code in a function, fixes some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Jun 20, 2016
1 parent d039ca3 commit 32d2161
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 340 deletions.
2 changes: 1 addition & 1 deletion build-js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ emconfigure ./configure --without-simd --without-turbojpeg CFLAGS="-O3"
emmake make
cp .libs/cjpeg ../../cjpeg.bc
cd ../..
emcc -O3 --closure 1 --pre-js src/pre.js -s "EXPORTED_RUNTIME_METHODS=[]" -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 cjpeg.bc -o src/cjpeg.js -L'./deps/mozjpeg/.libs' -ljpeg
emcc -O3 --closure 1 --pre-js src/pre.js --post-js src/post.js -s "EXPORTED_RUNTIME_METHODS=[]" -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 cjpeg.bc -o src/cjpeg.js -L'./deps/mozjpeg/.libs' -ljpeg
Loading

0 comments on commit 32d2161

Please sign in to comment.