From 8208d873bffc5a6ae02b6ae07bda3aeae725b746 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 15 Feb 2017 12:15:36 +0100 Subject: [PATCH] travis-ci: OS X : compile with real gcc 4.9 instead of clang gcc frontend --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index a890857..24941f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,9 @@ compiler: - gcc - clang +before_install: + - 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi' + script: - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' - 'MAKEFILE=Makefile && if [ -f Makefile.linux -a "$TRAVIS_OS_NAME" = "linux" ]; then MAKEFILE=Makefile.linux; elif [ -f Makefile.macosx -a "$TRAVIS_OS_NAME" = "osx" ]; then MAKEFILE=Makefile.macosx; fi'