Skip to content

Commit f0fc345

Browse files
Increase ccache size for debug builds
Currently we use a 1GB limit on the ccache size for all builds. However for the debug builds (those specifying '-g' to g++) object sizes are significantly larger due to the extra DWARF debug info. This is causing the debug builds to hit the ccache size limit. Local experiments suggest that with a 1GB limit, we can only get about 80% hit rate. Increasing the ccache size to 2GB increases the hit rate to 99%.
1 parent 423cd49 commit f0fc345

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
@@ -249,7 +249,7 @@ jobs:
249249

250250
install:
251251
- ccache -z
252-
- ccache --max-size=1G
252+
- ccache --max-size=2G
253253
- make -C src minisat2-download
254254
- make -C src/ansi-c library_check
255255
- make -C src "CXX=${COMPILER}" "CXXFLAGS=-Wall -Werror -pedantic -O2 -g ${EXTRA_CXXFLAGS}" -j2

0 commit comments

Comments
 (0)