Created
August 5, 2011 18:02
-
-
Save ccgus/1128125 to your computer and use it in GitHub Desktop.
llvm!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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