From d7ceae593aa0601dc20198080b3cb6e9ee4e4532 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 16 Oct 2016 21:48:59 +0300 Subject: [PATCH] travis-ci: use gcc-5 (fixes osx|gcc failures) Refs: travis-ci/travis-ci#4587 --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 337cc094..894b276d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,9 @@ before_install: brew update; brew uninstall libtool && brew install libtool; brew install openssl; - sudo ln -sf $(ls -t /usr/local/bin/gcc-* | head -1) /usr/bin/gcc; - sudo ln -sf $(ls -t /usr/local/bin/g++-* | head -1) /usr/bin/g++; + if [ "$CC" == "gcc" ]; then + export CC=$(ls -t /usr/local/bin/gcc-?.?); + fi fi addons: apt: