Skip to content

Commit ecca932

Browse files
committed
Try and fix Travis CI on OS X
On Linux we have to export CXX=g++-4.8 or it will use Travis's super old g++ and Oniguruma regex engine used by the highlighter won't build. Try and detect if there is a g++-4.8 binary and if not, fall back to just plain g++
1 parent 54fa9b4 commit ecca932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ install:
3939

4040
script:
4141
- make test
42-
- export CXX=g++-4.8
42+
- export CXX=$(command -v g++-4.8 >/dev/null 2>&1; if [ $? -eq 1 ]; then printf "g++"; else printf "g++-4.8"; fi)
4343
- $CXX --version
4444
- make html
4545
matrix:

0 commit comments

Comments
 (0)