Travis - don't use ccache with cross compiles
[openssl.git] / .travis.yml
index 3322543..750db1f 100644 (file)
@@ -67,9 +67,6 @@ before_script:
           srcdir=../_srcdist;
           mkdir _build;
           cd _build;
-          if which ccache >/dev/null; then
-              CC="ccache $CC";
-          fi
       fi
     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
           export CROSS_COMPILE=${CC%%gcc}; unset CC;
@@ -78,6 +75,9 @@ before_script:
           export CROSS_COMPILE=${CC%%gcc}; unset CC;
           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
       else
+          if which ccache >/dev/null; then
+              CC="ccache $CC";
+          fi
           $srcdir/config $CONFIG_OPTS;
       fi
     - cd ..