Created
June 23, 2015 06:04
-
-
Save MizukiSonoko/7db0a09032bc0330a5c7 to your computer and use it in GitHub Desktop.
LLVM3.6.1 install script
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install gcc g++ git make -y | |
sudo apt-get install libtool m4 -y | |
sudo apt-get install autoconf automake texinfo -y | |
wget http://llvm.org/releases/3.6.1/cfe-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/llvm-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/compiler-rt-3.6.1.src.tar.xz | |
tar Jvxf cfe-3.6.1.src.tar.xz | |
tar Jvxf llvm-3.6.1.src.tar.xz | |
tar Jvxf compiler-rt-3.6.1.src.tar.xz | |
mv cfe-3.6.1.src llvm-3.6.1.src/tools/clang | |
mv compiler-rt-3.6.1.src llvm-3.6.1.src/tools/compiler-rt | |
cd llvm-3.6.1.src/ | |
./configure --prefix=/usr/local/llvm --enable-optimized | |
# Dangerous!! Use a machine with ability more than a c4.4xlarge. | |
make -j24 | |
make check | |
sudo make install | |
echo 'export PATH=$PATH:/usr/local/llvm/bin' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment