Skip to content

Instantly share code, notes, and snippets.

@wisniewski94
Last active March 8, 2020 00:49
Show Gist options
  • Save wisniewski94/79eb874cde9b95e130ca16797b375bee to your computer and use it in GitHub Desktop.
Save wisniewski94/79eb874cde9b95e130ca16797b375bee to your computer and use it in GitHub Desktop.
em++ ../main.cpp ../stringFormat.cpp \
-Os -g1 \
-s WASM=1 \
-s MALLOC=emmalloc \
-s ALLOW_MEMORY_GROWTH=1 \
-s EXPORT_ES6=1 \
-s MODULARIZE=1 \
-s 'EXPORT_NAME="LongerSubSequence"' \
-s 'ENVIRONMENT="web"' \
--bind \
-o lss.mjs \
-std=c++11 || exit 1
source ./emsdk_env.sh
emcc mandel.cpp -Os -g1 -s WASM=1 -s MALLOC=emmalloc -s ALLOW_MEMORY_GROWTH=1 -s EXPORT_ES6=1 -s MODULARIZE=1 -s 'EXPORT_NAME="LongerSubSequence"' -s 'ENVIRONMENT="web"' --bind -o lss.mjs -std=c++11 || exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment