From: Reuben Thomas Date: Sun, 19 Aug 2018 21:32:23 +0000 (+0100) Subject: Travis: fix building with different versions of GCC X-Git-Tag: v3.7.1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5331802a58b33004217d9c94f0d63796429d7bad;p=recode Travis: fix building with different versions of GCC Install gcc, not g++ packages. Set CC environment variable in ./configure call --- diff --git a/.travis.yml b/.travis.yml index df4ead6..1397402 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ matrix: include: - os: linux env: - - COMPILER=g++-5 + - COMPILER=gcc-5 - PYTHON=/usr/bin/python-dbg - DISTCHECK_CONFIGURE_FLAGS="PYTHON=/usr/bin/python-dbg" - os: osx @@ -34,7 +34,7 @@ matrix: - CPPFLAGS="-I/usr/local/opt/flex/include" - compiler: gcc env: - - COMPILER=g++-6 + - COMPILER=gcc-6 addons: apt: sources: @@ -56,7 +56,7 @@ install: script: - ./bootstrap - - ./configure --enable-silent-rules + - ./configure --enable-silent-rules CC=$COMPILER - make # The Cython-built Python extension doesn’t work without make install on macOS - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make install && make check ; else make distcheck ; fi