From 86188c3ad63d7849c00d5424470c386f25f8d227 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Sat, 4 Jun 2016 12:13:48 +0200 Subject: Do not install clang-3.4 if not needed --- .travis/install-llvm-and-runtime-compiler.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.travis/install-llvm-and-runtime-compiler.sh') diff --git a/.travis/install-llvm-and-runtime-compiler.sh b/.travis/install-llvm-and-runtime-compiler.sh index 13a7f140..1068d158 100755 --- a/.travis/install-llvm-and-runtime-compiler.sh +++ b/.travis/install-llvm-and-runtime-compiler.sh @@ -5,6 +5,8 @@ sudo apt-get install -y llvm-${LLVM_VERSION} llvm-${LLVM_VERSION}-dev if [ "${LLVM_VERSION}" != "2.9" ]; then sudo apt-get install -y llvm-${LLVM_VERSION}-tools clang-${LLVM_VERSION} + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${LLVM_VERSION} 20 + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${LLVM_VERSION} 20 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 -- cgit 1.4.1