Skip to content

Commit

Permalink
Use LLVM 6.0 for clang_6.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kimgr committed Apr 23, 2018
1 parent af84cfc commit a1878c4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@ addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
- llvm-toolchain-trusty-6.0
packages:
- ninja-build
- llvm-dev
- libclang-dev
- clang
- llvm-6.0-dev
- libclang-6.0-dev
- clang-6.0

before_install:
# Install a supported cmake version (>= 3.4.3)
- wget -O cmake.sh https://cmake.org/files/v3.10/cmake-3.10.0-rc1-Linux-x86_64.sh
- sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local

# Extract the version number from the most-recently installed LLVM
- VERSION=`ls -t /usr/lib/ | grep '^llvm-' | head -n 1 | sed -E 's/llvm-(.+)/\1/'`

# Absolute paths to LLVM's root and bin directory
- ROOT_PATH=`llvm-config-$VERSION --prefix`
- BIN_PATH=`llvm-config-$VERSION --bindir`
- ROOT_PATH=`llvm-config-6.0 --prefix`
- BIN_PATH=`llvm-config-6.0 --bindir`

script:
# Build IWYU
Expand Down

0 comments on commit a1878c4

Please sign in to comment.