Created
July 20, 2015 11:00
-
-
Save kbinani/7618609e768eaf7537b6 to your computer and use it in GitHub Desktop.
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
M_LLVM_VERSION=3.6.2 | |
wget "http://llvm.org/releases/${M_LLVM_VERSION}/llvm-${M_LLVM_VERSION}.src.tar.xz" | |
tar Jxf llvm-${M_LLVM_VERSION}.src.tar.xz | |
M_PWD=$(pwd) | |
( | |
cd llvm-${M_LLVM_VERSION}.src/tools | |
wget "http://llvm.org/releases/${M_LLVM_VERSION}/cfe-${M_LLVM_VERSION}.src.tar.xz" | |
tar Jxf cfe-${M_LLVM_VERSION}.src.tar.xz | |
mv cfe-${M_LLVM_VERSION}.src clang | |
cd ../ | |
./configure --prefix=/usr/local | |
make -j 4 | |
sudo make install | |
sudo $(which checkinstall) --type=rpm --install=no --default --pkgname=clang --exclude=/home | |
sudo cp $(sudo find /root/rpmbuild/RPMS -name "clang-*.rpm" | head -1) "$M_PWD/" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment