Skip to content

Commit

Permalink
fix(travis): Match compiler prefix
Browse files Browse the repository at this point in the history
For some reason, for the tests CC is set to gcc and not gcc-5, meaning
the ${CXX} = g++ condition wasn't met, most likely because CXX was g++-5
already
  • Loading branch information
patrick96 committed Apr 28, 2018
1 parent e7bb4ce commit 8c18e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/travis/environment.sh
@@ -1,8 +1,8 @@
#!/bin/bash
# Update compiler flags
if [ "${CXX}" = "clang++" ]; then
if [ "${CXX:0:7}" = "clang++" ]; then
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
elif [ "${CXX}" = "g++" ]; then
elif [ "${CXX:0:3}" = "g++" ]; then
export CXX="g++-5"
export CC="gcc-5"
fi

0 comments on commit 8c18e50

Please sign in to comment.