Skip to content

Instantly share code, notes, and snippets.

@MizukiSonoko
Created June 23, 2015 06:04
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 MizukiSonoko/7db0a09032bc0330a5c7 to your computer and use it in GitHub Desktop.
Save MizukiSonoko/7db0a09032bc0330a5c7 to your computer and use it in GitHub Desktop.
LLVM3.6.1 install script
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