Use GCC 9 on Travis CI

PiperOrigin-RevId: 249899128
This commit is contained in:
Victor Costan 2019-05-24 14:25:42 -07:00 committed by Victor Costan
parent ae49533210
commit a3b71c1ff6

View File

@ -25,8 +25,8 @@ addons:
packages: packages:
- clang-8 - clang-8
- cmake - cmake
- gcc-8 - gcc-9
- g++-8 - g++-9
- libgoogle-perftools-dev - libgoogle-perftools-dev
- libkyotocabinet-dev - libkyotocabinet-dev
- libsnappy-dev - libsnappy-dev
@ -36,7 +36,7 @@ addons:
packages: packages:
- cmake - cmake
- crc32c - crc32c
- gcc@8 - gcc@9
- gperftools - gperftools
- kyotocabinet - kyotocabinet
- llvm@8 - llvm@8
@ -52,7 +52,7 @@ install:
export PATH="$(brew --prefix llvm)/bin:$PATH"; export PATH="$(brew --prefix llvm)/bin:$PATH";
fi fi
# /usr/bin/gcc points to an older compiler on both Linux and macOS. # /usr/bin/gcc points to an older compiler on both Linux and macOS.
- if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8"; fi - if [ "$CXX" = "g++" ]; then export CXX="g++-9" CC="gcc-9"; fi
# /usr/bin/clang points to an older compiler on both Linux and macOS. # /usr/bin/clang points to an older compiler on both Linux and macOS.
# #
# Homebrew's llvm package doesn't ship a versioned clang++ binary, so the values # Homebrew's llvm package doesn't ship a versioned clang++ binary, so the values