Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set -e -x
numcpu=$(grep -c ^processor /proc/cpuinfo)
git clone
git clone llvm/tools/clang
mkdir llvm/build/
cd llvm/build/
cmake .. \
make -j$numcpu
sudo make install
grep -q llvm $HOME/.bashrc || echo 'PATH=/opt/local/llvm/bin:$PATH' >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment