Skip to content

Instantly share code, notes, and snippets.

@wayou
Last active June 24, 2019 10:21
Show Gist options
  • Save wayou/dba6a5594a5fadec303f8e3f58984aad to your computer and use it in GitHub Desktop.
Save wayou/dba6a5594a5fadec303f8e3f58984aad to your computer and use it in GitHub Desktop.
using emscripten from docker instead of installing locally
emcc_image="trzeci/emscripten";
if [[ "$(docker images -q $emcc_image:latest 2> /dev/null)" == "" ]]; then
docker pull emcc_image;
fi
alias emcc="docker run --rm -v "$(pwd):/src" $emcc_image emcc";
# test
emcc -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment