Use GCC 9 on Travis CI

PiperOrigin-RevId: 249995900
This commit is contained in:
Victor Costan
2019-05-25 14:34:40 -07:00
committed by Victor Costan
parent a3e012d762
commit fe702ad2a3

View File

@@ -36,13 +36,13 @@ addons:
packages: packages:
- clang-8 - clang-8
- cmake - cmake
- gcc-8 - gcc-9
- g++-8 - g++-9
- ninja-build - ninja-build
homebrew: homebrew:
packages: packages:
- cmake - cmake
- gcc@8 - gcc@9
- llvm@8 - llvm@8
- ninja - ninja
update: true update: true
@@ -54,7 +54,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