about summary refs log tree commit diff homepage
path: root/.travis/install-llvm-and-runtime-compiler.sh
blob: 6374747ead01df69a650d3f01ab3a32fd5df5eb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -x
set -ev

sudo apt-get install llvm-${LLVM_VERSION} llvm-${LLVM_VERSION}-dev

if [ "${LLVM_VERSION}" != "2.9" ]; then
    sudo apt-get install llvm-${LLVM_VERSION}-tools clang-${LLVM_VERSION}
else
    # Get llvm-gcc. We don't bother installing it
    wget http://llvm.org/releases/2.9/llvm-gcc4.2-2.9-x86_64-linux.tar.bz2
    tar -xjf llvm-gcc4.2-2.9-x86_64-linux.tar.bz2
    mv llvm-gcc4.2-2.9-x86_64-linux llvm-gcc
fi