From d4bac95cd4d354839f8381f8ff166a411b47cb69 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 14 Sep 2020 17:07:14 -0600 Subject: [PATCH] [Regression Tests] Enable matrix eval parameter in setting up compilers --- .travis/common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis/common.sh b/.travis/common.sh index bee008a88..a5a7274de 100644 --- a/.travis/common.sh +++ b/.travis/common.sh @@ -37,10 +37,11 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then # export PATH="/usr/local/opt/qt/bin:$PATH" # Install header files in Mojave, if not gcc-4.9 cannot spot stdio.h sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / -allowUntrusted -#else +else # For linux, we use g++-8 and gcc-8 as default compilers - #export CC=gcc-8 - #export CXX=g++-8 + eval "${MATRIX_EVAL}" + export "CC=$CC" + export "CXX=$CXX" fi