WASMScript - tools to build WebAssembly script modules
Use download.sh
or
git submodule update --init --recursive
# Then, download latest LLVM and clang
LLVM build takes 15-40 minutes, and huge amount of memory.
Be careful with make -jN
, it can consume more then 16Gb of memory.
LLVM (without download.sh):
mkdir llvm-build
cd llvm-build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=`pwd` -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly ../llvm
make
LLVM (with download.sh):
cd llvm-build
make
WABT:
cd wabt
make
Binaryen:
cd binaryen
cmake .; make
C/C++
cd wasm/cpp
make