-
Notifications
You must be signed in to change notification settings - Fork 75
Setting Up Mono and LLVM
Aurojit Panda edited this page May 28, 2015
·
4 revisions
This is for Linux.
First we need to install some dependencies, either with
sudo pacman -Syu ninja swig libedit base-devel automake autoconf
or
sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext
sudo apt-get install cmake ninja-build gcc python-dev autoconf automake libtool zlib1g-dev
LLVM
git clone [email protected]:apanda/e2d2-llvm.git
cd e2d2-llvm/tools
git clone [email protected]:apanda/e2d2-clang.git clang
git clone [email protected]:apanda/e2d2-lldb.git lldb
cd ..
mkdir build
cmake .. -G Ninja -Wno-dev -DCMAKE_INSTALL_PREFIX=$LLVM_PFX -DLLVM_TARGETS_TO_BUILD="X86"
ninja all
ninja install
Mono
git clone [email protected]:apanda/e2d2-mono.git
cd e2d2-mono
./autogen.sh
make get-monolite-latest
./configure --prefix=$MONO_PFX --with-llvm=$LLVM_PFX --enable-llvm
make
make install
Add $LLVM_PFX/bin and $MONO_PFX/bin to PATH