]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
travis: Use ccache for MinGW builds
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Nov 2018 17:59:38 +0000 (18:59 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Nov 2018 13:37:56 +0000 (14:37 +0100)
scripts/test.sh

index 893dcb64991dafb4184f81f7388049508ee5d8a8..1998f21787b7479d01e512c05deebebdea5105f0 100755 (executable)
@@ -134,6 +134,7 @@ win*)
        # no make check for Windows binaries unless we run on a windows host
        if test "$APPVEYOR" != "True"; then
                TARGET=
+               CCACHE=ccache
        else
                CONFIG="$CONFIG --enable-openssl"
                CFLAGS="$CFLAGS -I/c/OpenSSL-$TEST/include"
@@ -146,12 +147,12 @@ win*)
        win64)
                CONFIG="--host=x86_64-w64-mingw32 $CONFIG --enable-dbghelp-backtraces"
                DEPS="gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev $DEPS"
-               CC="x86_64-w64-mingw32-gcc"
+               CC="$CCACHE x86_64-w64-mingw32-gcc"
                ;;
        win32)
                CONFIG="--host=i686-w64-mingw32 $CONFIG"
                DEPS="gcc-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-i686-dev $DEPS"
-               CC="i686-w64-mingw32-gcc"
+               CC="$CCACHE i686-w64-mingw32-gcc"
                ;;
        esac
        ;;