Another whack at travis with clang

This commit is contained in:
Tim Warren 2015-06-19 16:50:16 -04:00
parent b314705def
commit 5261fc2495
1 changed files with 4 additions and 1 deletions

View File

@ -6,9 +6,12 @@ before_install:
# Upgrade gcc
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get -qq update
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 98; fi
# Upgrade clang
- sudo apt-get -qq install llvm-3.4 llvm-3.4-dev
- if [ "$CXX" = "clang++" ]; then export CXXFLAGS="$CXXFLAGS -stdlib=libc++"; fi
# Install dependencies