Fix Travis CI build.

PiperOrigin-RevId: 309143110
This commit is contained in:
Victor Costan 2020-04-30 02:00:33 +00:00
parent e6506681fa
commit abde3abb1f
1 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@
language: cpp
dist: bionic
osx_image: xcode10.3
osx_image: xcode11.3
compiler:
- gcc
@ -19,7 +19,7 @@ env:
- BUILD_TYPE=RelWithDebInfo CPU_LEVEL=AVX
- BUILD_TYPE=RelWithDebInfo CPU_LEVEL=AVX2
matrix:
jobs:
exclude:
# Travis OSX servers seem to run on pre-Haswell CPUs. Attempting to use AVX2
# results in crashes.
@ -27,15 +27,19 @@ matrix:
os: osx
- env: BUILD_TYPE=RelWithDebInfo CPU_LEVEL=AVX2
os: osx
allow_failures:
# Homebrew's GCC is currently broken on XCode 11.
- compiler: gcc
os: osx
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- clang-9
- clang-10
- cmake
- gcc-9
- g++-9
@ -44,7 +48,7 @@ addons:
packages:
- cmake
- gcc@9
- llvm@9
- llvm@10
- ninja
update: true
@ -68,7 +72,7 @@ install:
# below don't work on macOS. Fortunately, the path change above makes the
# default values (clang and clang++) resolve to the correct compiler on macOS.
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$CXX" = "clang++" ]; then export CXX="clang++-9" CC="clang-9"; fi;
if [ "$CXX" = "clang++" ]; then export CXX="clang++-10" CC="clang-10"; fi;
fi
- echo ${CC}
- echo ${CXX}