Skip to content

Instantly share code, notes, and snippets.

@ccgus
Created August 5, 2011 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccgus/1128125 to your computer and use it in GitHub Desktop.
Save ccgus/1128125 to your computer and use it in GitHub Desktop.
llvm!
#!/bin/sh
cores=`sysctl -n machdep.cpu.core_count`
cores=`jstalk -e "$cores * 4"`
rm -rf /tmp/llvm
cd /tmp/
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ..
./configure --prefix=/opt --enable-optimized
make -j$cores && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment