This builds and installs a debug version of LLVM in external/install, which is necessary for debugging code generation and using ASAN and UBSAN in the overall project.
cd external
./setup_deps.sh
cd ..
System install of LLVM 6.0.x is required
Apple's bundled LLVM is incomplete, use homebrew:
brew install llvm
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bashrc
export PATH="/usr/local/opt/llvm/bin:$PATH"
Use bundled LLVM:
make
Use system LLVM:
make SYSTEMLLVM=1
Optimized Build:
make SYSTEMLLVM=1 SIMOPT=1
./build/jitfrontend tests/counter.json