Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 42ae197

Browse files
committed
Travis/CCache: workaround a ccache bug with g++-4.8.1
From ccache's manual: If compilation doesn’t work with ccache, but it works without it, one possible reason is that the compiler can’t compile preprocessed output correctly. A workaround that may work is to set CCACHE_CPP2. Signed-off-by: David Wagner <[email protected]>
1 parent ef833e2 commit 42ae197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ before_script:
5252
- if [ "$CC" = "gcc" ]; then
5353
export CC=gcc-4.8 CXX=g++-4.8;
5454
coverage=ON;
55+
# Workaround a bug with the ccache/g++-4.8.1 combination
56+
export CCACHE_CPP2
5557
fi
5658

5759
# how to build

0 commit comments

Comments
 (0)