Skip to content

Commit 622b4d8

Browse files
committed
Use gcc 4.8 as C compiler
1 parent 2c027f1 commit 622b4d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ before_install:
1212

1313
install:
1414
# gcc
15-
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
16-
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
15+
- if [ "$CC" == "gcc" ]; then sudo apt-get install -qq gcc-4.8; fi
16+
- if [ "$CC" == "gcc" ]; then export CC="gcc-4.8"; fi
17+
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
18+
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi
1719
# clang
1820
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
1921
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi

0 commit comments

Comments
 (0)