From c38f638c00d1ffdf2ab610fa1f0e3885c91255fe Mon Sep 17 00:00:00 2001 From: Pascal Muetschard Date: Wed, 3 Apr 2019 15:36:06 -0700 Subject: [PATCH] Use a newer version of GCC to build on Linux. --- kokoro/linux/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kokoro/linux/build.sh b/kokoro/linux/build.sh index b39f6ace3d..dbc45c21d5 100755 --- a/kokoro/linux/build.sh +++ b/kokoro/linux/build.sh @@ -24,6 +24,12 @@ curl -L -k -O -s https://github.com/bazelbuild/bazel/releases/download/0.20.0/ba mkdir bazel bash bazel-0.20.0-installer-linux-x86_64.sh --prefix=$PWD/bazel +# Get GCC 7 +sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test +sudo apt-get -q update +sudo apt-get -qy install gcc-7 +export CC=/usr/bin/gcc-7 + # Setup environment. export ANDROID_NDK_HOME=/opt/android-ndk-r16b