Skip to content

Instantly share code, notes, and snippets.

@jsantell
Forked from dweekly/gist:5873953
Created June 27, 2013 06:30
Show Gist options
  • Save jsantell/5874379 to your computer and use it in GitHub Desktop.
Save jsantell/5874379 to your computer and use it in GitHub Desktop.
# From https://github.com/kripken/emscripten/wiki/Tutorial
cd ~/
curl http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-apple-darwin11.tar.gz > llvm.tgz
tar xzvf llvm.tgz
ln -s clang+llvm-3.2-x86_64-apple-darwin11 llvm
git clone git://github.com/kripken/emscripten.git
cd emscripten
LLVM=~/llvm/bin ./emcc
LLVM=~/llvm/bin ./emcc tests/hello_world.cpp
ls -l a.out.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment