Last active
August 29, 2015 14:05
-
-
Save nojima/98c2cd48140af289aee9 to your computer and use it in GitHub Desktop.
LLVM と clang をビルドしてインストールする。
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 | |
set -xe | |
# Install requirements | |
sudo apt-get install build-essential unzip zip man subversion python | |
# Checkout repositories | |
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 clang/tools | |
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra | |
cd ../../../projects | |
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt | |
cd ../.. | |
# Configure and build | |
mkdir llvm-build | |
cd llvm-build | |
../llvm/configure --enable-optimized --disable-assertions --enable-targets=host | |
make -j4 | |
# Install LLVM and clang | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment