Skip to content

Commit

Permalink
Use LLVM 5.0 for clang_5.0 branch
Browse files Browse the repository at this point in the history
Makes sure the IWYU release branch keeps building against the right
LLVM/Clang version to track any breaking changes upstream.
  • Loading branch information
kimgr committed Dec 2, 2017
1 parent cfbe189 commit 15b3f1d
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-5.0
packages:
- ninja-build
- llvm-dev
- libclang-dev
- clang
- llvm-5.0-dev
- libclang-5.0-dev
- clang-5.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-5.0 --prefix`
- BIN_PATH=`llvm-config-5.0 --bindir`

script:
# Build IWYU
Expand Down

0 comments on commit 15b3f1d

Please sign in to comment.