Skip to content

Commit 8a4f110

Browse files
committed
travis: Use ccache for MinGW builds
1 parent b76a1cf commit 8a4f110

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ win*)
134134
# no make check for Windows binaries unless we run on a windows host
135135
if test "$APPVEYOR" != "True"; then
136136
TARGET=
137+
CCACHE=ccache
137138
else
138139
CONFIG="$CONFIG --enable-openssl"
139140
CFLAGS="$CFLAGS -I/c/OpenSSL-$TEST/include"
@@ -146,12 +147,12 @@ win*)
146147
win64)
147148
CONFIG="--host=x86_64-w64-mingw32 $CONFIG --enable-dbghelp-backtraces"
148149
DEPS="gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev $DEPS"
149-
CC="x86_64-w64-mingw32-gcc"
150+
CC="$CCACHE x86_64-w64-mingw32-gcc"
150151
;;
151152
win32)
152153
CONFIG="--host=i686-w64-mingw32 $CONFIG"
153154
DEPS="gcc-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-i686-dev $DEPS"
154-
CC="i686-w64-mingw32-gcc"
155+
CC="$CCACHE i686-w64-mingw32-gcc"
155156
;;
156157
esac
157158
;;

0 commit comments

Comments
 (0)