Created
September 20, 2017 18:47
-
-
Save buszk/1ac127d81d58ee76e568f825ce1d2f29 to your computer and use it in GitHub Desktop.
Script to intall llvm and clang on giant-panda.
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
wget -nc http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz | |
wget -nc http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz | |
rm -rf llvm | |
mkdir -p llvm | |
tar xfz llvm-3.3.src.tar.gz -C llvm --strip-components=1 | |
mkdir -p llvm/tools/clang | |
tar xfz cfe-3.3.src.tar.gz -C llvm/tools/clang --strip-components=1 | |
mkdir -p build | |
cd build | |
CC=gcc CXX=g++ ../llvm/configure \ | |
--enable-optimizations \ | |
--disable-asserts \ | |
--enable-shared | |
make -j12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment